diff options
author | Matthew Hodgson <matthew@matrix.org> | 2017-12-05 11:09:31 +0000 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2017-12-05 11:09:31 +0000 |
commit | cdc2cb5d11860f013c58923779a2226620453309 (patch) | |
tree | 3c27fc615527c82ea005e9eb4340808ab0a55c55 | |
parent | speed up the rate of initial spam for users (diff) | |
download | synapse-cdc2cb5d11860f013c58923779a2226620453309.tar.xz |
fix StoreError syntax
-rw-r--r-- | synapse/storage/profile.py | 2 |
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)) |