summary refs log tree commit diff
path: root/synapse/rest/client
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-03-07 20:13:10 +0000
committerMark Haines <mark.haines@matrix.org>2016-03-07 20:13:10 +0000
commit239badea9be1dd7857833408209ef22dd99773de (patch)
tree80374571f6fab646c8e38ba8bffc3fb1477440d0 /synapse/rest/client
parentMerge pull request #626 from matrix-org/erikj/visibility (diff)
downloadsynapse-239badea9be1dd7857833408209ef22dd99773de.tar.xz
Use syntax that works on both py2.7 and py3
Diffstat (limited to 'synapse/rest/client')
-rw-r--r--synapse/rest/client/v1/login.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/login.py b/synapse/rest/client/v1/login.py
index f13272da8e..c14e8af00e 100644
--- a/synapse/rest/client/v1/login.py
+++ b/synapse/rest/client/v1/login.py
@@ -252,7 +252,7 @@ class SAML2RestServlet(ClientV1RestServlet):
             SP = Saml2Client(conf)
             saml2_auth = SP.parse_authn_request_response(
                 request.args['SAMLResponse'][0], BINDING_HTTP_POST)
-        except Exception, e:        # Not authenticated
+        except Exception as e:        # Not authenticated
             logger.exception(e)
         if saml2_auth and saml2_auth.status_ok() and not saml2_auth.not_signed:
             username = saml2_auth.name_id.text