summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 509730c)
raw | patch | inline | side by side (parent: 509730c)
author | JazzyNico <nicoduf@yahoo.fr> | |
Thu, 12 Aug 2010 16:29:31 +0000 (18:29 +0200) | ||
committer | JazzyNico <nicoduf@yahoo.fr> | |
Thu, 12 Aug 2010 16:29:31 +0000 (18:29 +0200) |
share/extensions/inkex.py | patch | blob | history |
index 49de51ef31e6fa8ca533671024fcf3f95425e12e..7d40bc70ca75f306ebdd4e28714844b86807396d 100755 (executable)
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")