23 lines
693 B
Diff
23 lines
693 B
Diff
diff --git a/src/cysignals/signals.pyx b/src/cysignals/signals.pyx
|
|
index 114a156..4bb7476 100644
|
|
--- a/src/cysignals/signals.pyx
|
|
+++ b/src/cysignals/signals.pyx
|
|
@@ -376,7 +376,7 @@ cdef void verify_exc_value() noexcept:
|
|
# to the exception.
|
|
try:
|
|
handled = sys.last_value
|
|
- except AttributeError:
|
|
+ except:
|
|
pass
|
|
else:
|
|
if <PyObject*>handled is cysigs.exc_value:
|
|
@@ -388,7 +388,7 @@ cdef void verify_exc_value() noexcept:
|
|
# references to our exception.
|
|
try:
|
|
collect()
|
|
- except Exception:
|
|
+ except:
|
|
# This can happen when Python is shutting down and the gc module
|
|
# is not functional anymore.
|
|
pass
|