fix StoreError syntax

pull/2723/head
Matthew Hodgson 2017-12-05 11:09:31 +00:00
parent c22e73293a
commit cdc2cb5d11
1 changed files with 1 additions and 1 deletions

View File

@ -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))