mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-01-26 06:45:54 -05:00
Don't catch the return-value-as-exception that @defer.inlineCallbacks will use
This commit is contained in:
parent
3ec10dffd6
commit
b3511adb92
@ -78,7 +78,7 @@ class ApplicationServiceApi(SimpleHttpClient):
|
|||||||
try:
|
try:
|
||||||
response = yield self.get_json(uri, fields)
|
response = yield self.get_json(uri, fields)
|
||||||
defer.returnValue(response)
|
defer.returnValue(response)
|
||||||
except:
|
except Exception:
|
||||||
# TODO: would be noisy to log lookup failures, but we want to log
|
# TODO: would be noisy to log lookup failures, but we want to log
|
||||||
# other things. Hrm.
|
# other things. Hrm.
|
||||||
defer.returnValue([])
|
defer.returnValue([])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user