summary refs log tree commit diff
path: root/synapse/logging/context.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-03-24 16:13:19 +0000
committerErik Johnston <erik@matrix.org>2021-03-24 16:13:19 +0000
commitf36a060d2cf6fe641a07e26979da47aeedfb8321 (patch)
tree3a43b0f9149c6d6d845db010e4eb1b215c9bbe79 /synapse/logging/context.py
parentMerge remote-tracking branch 'origin/develop' into matrix-org-hotfixes (diff)
parentFixed undefined variable error in catchup (#9664) (diff)
downloadsynapse-f36a060d2cf6fe641a07e26979da47aeedfb8321.tar.xz
Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes
Diffstat (limited to 'synapse/logging/context.py')
-rw-r--r--synapse/logging/context.py2
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()