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

Merge pull request #1790 from matrix-org/erikj/linearizer

Add paranoia exception catch in Linearizer
This commit is contained in:
Erik Johnston 2017-01-10 15:38:30 +00:00 committed by GitHub
commit d2b00d0866

View file

@ -192,8 +192,11 @@ class Linearizer(object):
logger.info(
"Waiting to acquire linearizer lock %r for key %r", self.name, key
)
with PreserveLoggingContext():
yield current_defer
try:
with PreserveLoggingContext():
yield current_defer
except:
logger.exception("Unexpected exception in Linearizer")
logger.info("Acquired linearizer lock %r for key %r", self.name, key)