#16242: assert_have_dot2tex should reraise exception not replace it
-------------------------------------------------+-------------------------
Reporter: slabbe | Owner: slabbe
Type: defect | Status: closed
Priority: major | Milestone: sage-6.3
Component: packages: optional | Resolution: fixed
Keywords: | Merged in:
Authors: Sébastien Labbé | Reviewers: Nathann
Report Upstream: N/A | Cohen
Branch: | Work issues:
ecc5f70423cf25c566fd8f30364a3ffe295d6ad8 | Commit:
Dependencies: | Stopgaps:
-------------------------------------------------+-------------------------
Changes (by slabbe):
* commit: ecc5f70423cf25c566fd8f30364a3ffe295d6ad8 =>
Comment:
Replying to [comment:18 jhpalmieri]:
> How about something like:
> {{{
> #!python
> except ImportError as e:
> raise ImportError(e.message + import_error_string)
> }}}
With this we lose the traceback of the original error... Same thing for
the following :
{{{
#!python
except ImportError as e:
e.args = (e.message + import_error_string,)
raise e
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16242#comment:20>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.