Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update sympy/mpmath/ctx_iv.py

  • Loading branch information...
commit ee49f6076a62f2fbda5fa4255724c29e5f25de3e 1 parent 746c52d
tsmars15 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 sympy/mpmath/ctx_iv.py
4 sympy/mpmath/ctx_iv.py
View
@@ -108,7 +108,7 @@ def _compare(s, t, cmpfun):
if not hasattr(t, "_mpi_"):
try:
t = s.ctx.convert(t)
- except (ValueError, TypeError):
+ except:
return NotImplemented
return cmpfun(s._mpi_, t._mpi_)
@@ -192,7 +192,7 @@ def _compare(s, t, ne=False):
if not isinstance(t, s.ctx._types):
try:
t = s.ctx.convert(t)
- except (ValueError, TypeError):
+ except:
return NotImplemented
if hasattr(t, '_mpi_'):
tval = t._mpi_, mpi_zero
Please sign in to comment.
Something went wrong with that request. Please try again.