On 04/27/2011 05:30 PM, Alex Gaynor wrote:


This is needed so that the process will exit with the correct status code. Note that this doesn't prevent you from calling it, you just need to catch the SystemExit exception.

Alex



Alex,

That's perfect. I tried to catch the exception before and it didn't work. I didn't know that SystemExit came from a different base class than Exception, but after you mentioned it I searched and found this:

http://docs.python.org/library/exceptions.html#exceptions.SystemExit

Thanks for the education.

Shawn

--
You received this message because you are subscribed to the Google Groups "Django 
developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to