Browse Source

Use the "as" keyword for exception mathing in a try/except block

Guillaume Ayoub 14 years ago
parent
commit
fc166da8ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      radicale/__init__.py

+ 1 - 1
radicale/__init__.py

@@ -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))