You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2010-08-11.01:14:56.805>created_at=<Date2010-08-10.21:25:27.074>labels= ['type-bug', 'library']
title='optparse: bad exception handling when giving no value to an option requiring one'updated_at=<Date2010-08-11.01:14:56.804>user='https://bugs.python.org/GwendalLEBIHAN'
I get the following exception, which is not caught:
options,args=optparser.parse_args()
File "/usr/lib/python2.6/optparse.py", line 1394, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python2.6/optparse.py", line 1434, in _process_args
self._process_long_opt(rargs, values)
File "/usr/lib/python2.6/optparse.py", line 1509, in _process_long_opt
option.process(opt, value, values, self)
UnboundLocalError: local variable 'value' referenced before assignment
GwendalLEBIHANmannequin
changed the title
bad exception handling when giving no value to an option requiring one
optparse: bad exception handling when giving no value to an option requiring one
Aug 10, 2010
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: