Permalink
Browse files

Update sympy/mpmath/libmp/libmpf.py

  • Loading branch information...
1 parent 765971e commit 93d4497d6dde4aa5caa0e530785cc9cdea8e6f81 tsmars15 committed Nov 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 sympy/mpmath/libmp/libmpf.py
@@ -418,7 +418,7 @@ def from_float(x, prec=53, rnd=round_fast):
# in Python2.6 it returns (float infinity, 0)
try:
m, e = math.frexp(x)
- except FloatingPointError:
+ except:
if x == math_float_inf: return finf
if x == -math_float_inf: return fninf
return fnan

0 comments on commit 93d4497

Please sign in to comment.