web/cors.py
changeset 10588 fdaa0e4b7eaf
parent 10002 586d0e527052
child 10603 65ad6980976e
--- a/web/cors.py	Fri Sep 11 14:27:34 2015 +0200
+++ b/web/cors.py	Fri Sep 11 14:28:06 2015 +0200
@@ -50,7 +50,7 @@
                 process_preflight(req, config)
         else: # Simple CORS or actual request
             process_simple(req, config)
-    except CORSFailed, exc:
+    except CORSFailed as exc:
         info('Cross origin resource sharing failed: %s' % exc)
     except CORSPreflight:
         info('Cross origin resource sharing: valid Preflight request %s')