Permalink
Browse files

Trac #10780: trac #10780: If you generate an error that's not an Impo…

…rtError, it's covered up by this code: instead you get a name error.
  • Loading branch information...
1 parent 52b65a9 commit 26b30d0bc27d1254be06f11409572e61144b878a David Roe committed Sep 19, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 sagenb/misc/misc.py
View
3 sagenb/misc/misc.py
@@ -202,6 +202,9 @@ def pad_zeros(s, size=3):
"CFF : '{\\\\Bold{CFF}}'",
"Bold : ['{\\\\mathbf{#1}}', 1]"
]
+except Exception:
+ sage_jsmath_macros_easy = []
+ raise
finally:
jsmath_macros = ',\n'.join(sage_jsmath_macros_easy)

0 comments on commit 26b30d0

Please sign in to comment.