diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2010-08-12 16:29:31 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2010-08-12 16:29:31 +0000 |
| commit | 47d36db12703beeb3bc0aa7a17e4d7da9bfa2ffd (patch) | |
| tree | a5829e0654fb61138bac5613caf403988a40da8a | |
| parent | Extensions. New -Save Background- option and help tab in Gimp XCF export. (diff) | |
| download | inkscape-47d36db12703beeb3bc0aa7a17e4d7da9bfa2ffd.tar.gz inkscape-47d36db12703beeb3bc0aa7a17e4d7da9bfa2ffd.zip | |
Extensions. Fix misleading message in inkex.py (Bug #602041)
Fixed bugs:
- https://launchpad.net/bugs/602041
(bzr r9704)
| -rwxr-xr-x | share/extensions/inkex.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/share/extensions/inkex.py b/share/extensions/inkex.py index 49de51ef3..7d40bc70c 100755 --- a/share/extensions/inkex.py +++ b/share/extensions/inkex.py @@ -63,8 +63,9 @@ def uutounit(val, unit): try: from lxml import etree -except: - sys.exit(_('The fantastic lxml wrapper for libxml2 is required by inkex.py and therefore this extension. Please download and install the latest version from http://cheeseshop.python.org/pypi/lxml/, or install it through your package manager by a command like: sudo apt-get install python-lxml')) +except Exception, e: + sys.exit(_("The fantastic lxml wrapper for libxml2 is required by inkex.py and therefore this extension. Please download and install the latest version from http://cheeseshop.python.org/pypi/lxml/, or install it through your package manager by a command like: sudo apt-get install python-lxml\n\nTechnical details:\n%s" % (e,))) + def debug(what): sys.stderr.write(str(what) + "\n") |
