diff options
author | Jonathan de Jong <jonathan@automatia.nl> | 2021-03-24 14:34:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-24 09:34:30 -0400 |
commit | 4c3827f2c18180533b804ebd4d8f5cb90774244b (patch) | |
tree | 5a655fea7a1aeb307e09787f73a29db8918a0a64 /synapse/logging | |
parent | Spaces summary: call out to other servers (#9653) (diff) | |
download | synapse-4c3827f2c18180533b804ebd4d8f5cb90774244b.tar.xz |
Enable addtional flake8-bugbear linting checks. (#9659)
Diffstat (limited to 'synapse/logging')
-rw-r--r-- | synapse/logging/context.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/logging/context.py b/synapse/logging/context.py index 1a7ea4fa96..03cf3c2b8e 100644 --- a/synapse/logging/context.py +++ b/synapse/logging/context.py @@ -689,7 +689,7 @@ def run_in_background(f, *args, **kwargs) -> defer.Deferred: current = current_context() try: res = f(*args, **kwargs) - except: # noqa: E722 + except Exception: # the assumption here is that the caller doesn't want to be disturbed # by synchronous exceptions, so let's turn them into Failures. return defer.fail() |