#9455: Undefined local `error` in the LaxOptionParser._process_args method
-----------------------------------------------------------------+----------
Reporter: egenix_viktor | Owner:
nobody
Status: new | Milestone:
Component: Core framework | Version:
1.0
Keywords: LaxOptionParser _process_args undefined local error | Stage:
Unreviewed
Has_patch: 0 |
-----------------------------------------------------------------+----------
'''Django 1.0, release version'''
I encountered an undefined local variable in Django itself while porting
an application to Django 1.0:
In `core/management/init.py` there is a `LaxOptionParser._process_args`
method. It can raise an exception the following way:
{{{
raise error
}}}
It is under while / try / if-else. Line 210 in Django 1.0 release version.
The `error` local is undefined here.
The else clause is reached due to a wrong command line parameter,
probably. I'm going to track it down...
--
Ticket URL: <http://code.djangoproject.com/ticket/9455>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---