#9589: development server stops on SyntaxError or other Exceptions
------------------------------------------------+---------------------------
          Reporter:  eibaan                     |         Owner:  nobody
            Status:  new                        |     Milestone:        
         Component:  django-admin.py runserver  |       Version:  1.0   
        Resolution:                             |      Keywords:        
             Stage:  Design decision needed     |     Has_patch:  1     
        Needs_docs:  0                          |   Needs_tests:  0     
Needs_better_patch:  0                          |  
------------------------------------------------+---------------------------
Comment (by berto):

 I've created a patch that uses a decorator to solve this problem.  When
 main() is called to start the reloader, the function passed in is wrapped
 in a decorator that currently catches !IndentationError, !NameError,
 !SyntaxError, or !TypeError.  When one these exceptions is found, the file
 that caused the error is added to a list of watched files.  This list is
 checked for modifications in addition to the files found in sys.modules.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9589#comment:6>
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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to