#9455: Undefined local `error` in the LaxOptionParser._process_args method
-------------------------------------+--------------------------------------
          Reporter:  egenix_viktor   |         Owner:  nobody                   
                          
            Status:  reopened        |     Milestone:                           
                          
         Component:  Core framework  |       Version:  1.0                      
                          
        Resolution:                  |      Keywords:  LaxOptionParser 
_process_args undefined local error
             Stage:  Unreviewed      |     Has_patch:  0                        
                          
        Needs_docs:  0               |   Needs_tests:  0                        
                          
Needs_better_patch:  0               |  
-------------------------------------+--------------------------------------
Changes (by baus):

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 This problem still exists in 1.0.2. The coded raise is never executed
 because NameError is raised before "raise error" is executed. The except
 actually handles the NameError not the undefined "error".

 WingIDE catches this problem because the debugger stops on all NameError
 exceptions by default.

 I believe changing raise error to raise Exception() provides the desired
 behavior.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9455#comment:5>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to