Skip to content

Commit

Permalink
Merge pull request #97 from infinity0/patch-1
Browse files Browse the repository at this point in the history
Be more robust to different types of errors when importing Sage
  • Loading branch information
malb committed Aug 8, 2017
2 parents f696929 + 2602acf commit 822f564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fpylll/io.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ from gmp.mpz cimport mpz_t, mpz_set_si, mpz_set
try:
from sage.all import ZZ
have_sage = True
except ImportError:
except Exception:
have_sage = False

cdef int assign_Z_NR_mpz(Z_NR[mpz_t]& t, value) except -1:
Expand Down

0 comments on commit 822f564

Please sign in to comment.