On 2010-07-22, at 15:50 , Darius Damalakas wrote:
> This is exactly what i do not want - to manually catch exceptions.

Is there any reason for that? It is fairly common to use exceptions (and catch 
them) in Python (see EAFP). Using get() and catching DoesNotExist is generally 
the way such a case is handled in Django, I believe.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en.

Reply via email to