You could just check the count of that many items (since its unique it should always be 1 or 0):
if Photo.objects.filter(flickr_id=photo("id")).count() == 0: # create the object ... But its my understanding that Python exceptions are not as heavy weight as they are in languages like C++/Java/C# so not only is either way probably fine, the exception approach is actually fairly common in Python. But I understand your discomfort - I had always taught myself (pre Python) to only use exceptions for exceptional cases, i.e. things you didn't expect to happen. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---