diff options
| author | Sebastian Wüst <sebi@timewaster.de> | 2013-10-03 18:26:22 +0000 |
|---|---|---|
| committer | Sebastian Wüst <sebi@timewaster.de> | 2013-10-03 18:26:22 +0000 |
| commit | 0cccda91e5b2d2ab5d21a6cc1365aa1c73d5bc9c (patch) | |
| tree | 301ec59074358fdfc402ca2e99511eb14477dab8 /share/extensions/hpgl_input.py | |
| parent | small changes + fixes (diff) | |
| download | inkscape-0cccda91e5b2d2ab5d21a6cc1365aa1c73d5bc9c.tar.gz inkscape-0cccda91e5b2d2ab5d21a6cc1365aa1c73d5bc9c.zip | |
parser can now work with multiple pens, better exception handling
(bzr r12417.1.15)
Diffstat (limited to 'share/extensions/hpgl_input.py')
| -rw-r--r-- | share/extensions/hpgl_input.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/share/extensions/hpgl_input.py b/share/extensions/hpgl_input.py index 3bd698082..e841e1138 100644 --- a/share/extensions/hpgl_input.py +++ b/share/extensions/hpgl_input.py @@ -1,8 +1,6 @@ #!/usr/bin/env python # coding=utf-8 ''' -hpgl_input.py - input a HP Graphics Language file - Copyright (C) 2013 Sebastian Wüst, sebi@timewaster.de, http://www.timewasters-place.com/ This program is free software; you can redistribute it and/or modify @@ -21,9 +19,10 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ''' # standard library +import sys from StringIO import StringIO # local library -import hpgl_decoder, inkex +import hpgl_decoder, inkex, sys inkex.localize() @@ -62,6 +61,7 @@ except Exception as inst: inkex.errormsg(_("No HPGL data found.")) print 1 else: - raise Exception(inst) + type, value, traceback = sys.exc_info() + raise ValueError, ("", type, value), traceback # vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 fileencoding=utf-8 textwidth=99
\ No newline at end of file |
