inkex.py does not import OptionValueError exception

Bug #297676 reported by Kjell Magne Fauske
2
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.

Revision history for this message
Kjell Magne Fauske (kjellmf) wrote :
tags: added: extensions-plugins
removed: extensions
Revision history for this message
su_v (suv-lp) wrote :
Changed in inkscape:
milestone: none → 0.47
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.