mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 22:34:58 -04:00
Enable addtional flake8-bugbear linting checks. (#9659)
This commit is contained in:
parent
c73cc2c2ad
commit
4c3827f2c1
8 changed files with 9 additions and 8 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue