Permalink
Browse files

Update sympy/mpmath/ctx_iv.py

  • Loading branch information...
1 parent 746c52d commit ee49f6076a62f2fbda5fa4255724c29e5f25de3e tsmars15 committed Nov 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 sympy/mpmath/ctx_iv.py
View
4 sympy/mpmath/ctx_iv.py
@@ -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

0 comments on commit ee49f60

Please sign in to comment.