mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-11 22:04:19 -05:00
Fix exception handling in fetching remote profiles
This commit is contained in:
parent
25baf3b2ac
commit
495a9d06bb
@ -142,9 +142,7 @@ class BaseProfileHandler(BaseHandler):
|
|||||||
if e.code != 404:
|
if e.code != 404:
|
||||||
logger.exception("Failed to get displayname")
|
logger.exception("Failed to get displayname")
|
||||||
raise
|
raise
|
||||||
except Exception:
|
|
||||||
logger.exception("Failed to get displayname")
|
|
||||||
else:
|
|
||||||
defer.returnValue(result["displayname"])
|
defer.returnValue(result["displayname"])
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
@ -199,8 +197,6 @@ class BaseProfileHandler(BaseHandler):
|
|||||||
if e.code != 404:
|
if e.code != 404:
|
||||||
logger.exception("Failed to get avatar_url")
|
logger.exception("Failed to get avatar_url")
|
||||||
raise
|
raise
|
||||||
except Exception:
|
|
||||||
logger.exception("Failed to get avatar_url")
|
|
||||||
|
|
||||||
defer.returnValue(result["avatar_url"])
|
defer.returnValue(result["avatar_url"])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user