summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2010-08-12 16:29:31 +0000
committerJazzyNico <nicoduf@yahoo.fr>2010-08-12 16:29:31 +0000
commit47d36db12703beeb3bc0aa7a17e4d7da9bfa2ffd (patch)
treea5829e0654fb61138bac5613caf403988a40da8a
parentExtensions. New -Save Background- option and help tab in Gimp XCF export. (diff)
downloadinkscape-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-xshare/extensions/inkex.py5
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")