mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-24 02:25:45 +03:00
fix StoreError syntax
This commit is contained in:
parent
c22e73293a
commit
cdc2cb5d11
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ class ProfileStore(SQLBaseStore):
|
||||||
retcols=("displayname", "avatar_url"),
|
retcols=("displayname", "avatar_url"),
|
||||||
desc="get_profileinfo",
|
desc="get_profileinfo",
|
||||||
)
|
)
|
||||||
except StoreError, e:
|
except StoreError as e:
|
||||||
if e.code == 404:
|
if e.code == 404:
|
||||||
# no match
|
# no match
|
||||||
defer.returnValue(ProfileInfo(None, None))
|
defer.returnValue(ProfileInfo(None, None))
|
||||||
|
|
Loading…
Reference in a new issue