python3-cysignals: rebuild for pari-2.17.0

This commit is contained in:
Gonzalo Tornaría 2024-12-24 14:49:33 -03:00 committed by Leah Neukirchen
parent e642407312
commit 528fc8f111
2 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,22 @@
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

View file

@ -1,7 +1,7 @@
# Template file for 'python3-cysignals'
pkgname=python3-cysignals
version=1.11.4
revision=2
revision=3
# need gnu-configure build style to support cross build
build_style=gnu-configure
build_helper=python3