From de741bfceb63c2c38321c55ff18852e495394466 Mon Sep 17 00:00:00 2001 From: JazzyNico Date: Thu, 12 Aug 2010 18:29:31 +0200 Subject: [PATCH] Extensions. Fix misleading message in inkex.py (Bug #602041) --- share/extensions/inkex.py | 5 +++-- 1 file 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") -- 2.30.2