mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
Catch the exception instead of (errno, message)
This commit is contained in:
parent
fc166da8ba
commit
0cdc5b06da
1 changed files with 2 additions and 2 deletions
|
@ -84,10 +84,10 @@ class HTTPSServer(HTTPServer):
|
|||
filename = config.get("server", name)
|
||||
try:
|
||||
open(filename, "r").close()
|
||||
except IOError as (_, message):
|
||||
except IOError as exception:
|
||||
log.LOGGER.warn(
|
||||
"Error while reading SSL %s %r: %s" % (
|
||||
name, filename, message))
|
||||
name, filename, exception))
|
||||
|
||||
self.socket = ssl.wrap_socket(
|
||||
self.socket,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue