Fix multi-processing context block catching exception

This commit is contained in:
allegroai 2021-12-30 12:21:48 +02:00
parent 3df7d2651c
commit db6f6f3d76

View File

@ -62,8 +62,6 @@ class ForkSafeRLock(object):
"""Raise any exception triggered within the runtime context."""
# Do whatever cleanup.
self.release()
if any((exc_type, exc_value, traceback,)):
raise (exc_type, exc_value, traceback)
class ThreadCalls(object):
@ -326,8 +324,6 @@ class SingletonLock(AbstractContextManager):
"""Raise any exception triggered within the runtime context."""
# Do whatever cleanup.
self.release()
if any((exc_type, exc_value, traceback,)):
raise (exc_type, exc_value, traceback)
class BackgroundMonitor(object):