From: JazzyNico Date: Thu, 12 Aug 2010 16:29:31 +0000 (+0200) Subject: Extensions. Fix misleading message in inkex.py (Bug #602041) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=de741bfceb63c2c38321c55ff18852e495394466;p=inkscape.git Extensions. Fix misleading message in inkex.py (Bug #602041) --- 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")