mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-02 16:58:30 +00:00
Use the "as" keyword for exception mathing in a try/except block
This commit is contained in:
parent
3689944372
commit
fc166da8ba
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ class HTTPSServer(HTTPServer):
|
|||
filename = config.get("server", name)
|
||||
try:
|
||||
open(filename, "r").close()
|
||||
except IOError, (_, message):
|
||||
except IOError as (_, message):
|
||||
log.LOGGER.warn(
|
||||
"Error while reading SSL %s %r: %s" % (
|
||||
name, filename, message))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue