summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2017-12-05 11:09:31 +0000
committerMatthew Hodgson <matthew@matrix.org>2017-12-05 11:09:31 +0000
commitcdc2cb5d11860f013c58923779a2226620453309 (patch)
tree3c27fc615527c82ea005e9eb4340808ab0a55c55
parentspeed up the rate of initial spam for users (diff)
downloadsynapse-cdc2cb5d11860f013c58923779a2226620453309.tar.xz
fix StoreError syntax
-rw-r--r--synapse/storage/profile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/profile.py b/synapse/storage/profile.py
index 4e7b7c253b..ec02e73bc2 100644
--- a/synapse/storage/profile.py
+++ b/synapse/storage/profile.py
@@ -38,7 +38,7 @@ class ProfileStore(SQLBaseStore):
                 retcols=("displayname", "avatar_url"),
                 desc="get_profileinfo",
             )
-        except StoreError, e:
+        except StoreError as e:
             if e.code == 404:
                 # no match
                 defer.returnValue(ProfileInfo(None, None))