0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 19:03:51 +01:00

Don't catch the return-value-as-exception that @defer.inlineCallbacks will use

This commit is contained in:
Paul "LeoNerd" Evans 2016-08-18 13:45:18 +01:00
parent 3ec10dffd6
commit b3511adb92

View file

@ -78,7 +78,7 @@ class ApplicationServiceApi(SimpleHttpClient):
try:
response = yield self.get_json(uri, fields)
defer.returnValue(response)
except:
except Exception:
# TODO: would be noisy to log lookup failures, but we want to log
# other things. Hrm.
defer.returnValue([])