From 42ab939aa3eb9039289b791be01acaa2be81106e Mon Sep 17 00:00:00 2001 From: Hao-Wei Pang Date: Thu, 25 Jan 2024 10:42:19 -0500 Subject: [PATCH] Catch TypeError --- arkane/encorr/isodesmic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arkane/encorr/isodesmic.py b/arkane/encorr/isodesmic.py index 0415489ee8b..ebb4c287ed5 100644 --- a/arkane/encorr/isodesmic.py +++ b/arkane/encorr/isodesmic.py @@ -729,7 +729,7 @@ def _find_error_canceling_reaction(self, reference_subset, milp_software=None): # Reset signal handling since lpsolve changed it try: signal.signal(signal.SIGINT, sig) - except ValueError: + except TypeError: # This is not being run in the main thread, so we cannot reset signal pass