inkex.py does not import OptionValueError exception
Bug #297676 reported by
Kjell Magne Fauske
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In inkex.py the OptionValueError exception is raised when an unknown option value is passed to an extension. Currently the exception is not imported from optparse, so triggering the exception raises the error:
NameError: global name 'OptionValueError' is not defined
A patch is attached that prefixes OptionValueError with optparse so that the exception class is found.
tags: |
added: extensions-plugins removed: extensions |
To post a comment you must log in.
fixed in revision 7385 bazaar. launchpad. net/~inkscape. dev/inkscape/ trunk/revision/ 7385>
<http://