Fix most warnings

This commit is contained in:
Tulir Asokan
2018-02-04 20:31:42 +02:00
parent 4ad0b185b4
commit ceeeefeae6
9 changed files with 89 additions and 92 deletions
+3 -3
View File
@@ -106,7 +106,7 @@ class AppService:
try:
response = self.query_user(user_id)
except:
except Exception:
self.log.exception("Exception in user query handler")
return web.Response(status=500)
@@ -122,7 +122,7 @@ class AppService:
try:
response = self.query_alias(alias)
except:
except Exception:
self.log.exception("Exception in alias query handler")
return web.Response(status=500)
@@ -164,7 +164,7 @@ class AppService:
for handler in self.event_handlers:
try:
handler(event)
except:
except Exception:
self.log.exception("Exception in Matrix event handler")
def matrix_event_handler(self, func):