12 lines
547 B
Diff
12 lines
547 B
Diff
--- sympy-sympy-1.4/sympy/core/sympify.py.orig 2019-04-09 18:29:25.000000000 -0600
|
|
+++ sympy-sympy-1.4/sympy/core/sympify.py 2019-04-17 14:36:06.028059616 -0600
|
|
@@ -382,7 +382,7 @@ def sympify(a, locals=None, convert_xor=
|
|
try:
|
|
a = a.replace('\n', '')
|
|
expr = parse_expr(a, local_dict=locals, transformations=transformations, evaluate=evaluate)
|
|
- except (TokenError, SyntaxError) as exc:
|
|
+ except (TokenError, SyntaxError, TypeError) as exc:
|
|
raise SympifyError('could not parse %r' % a, exc)
|
|
|
|
return expr
|