On Wed, Mar 5, 2008 at 4:45 PM, Thomas Guettler <[EMAIL PROTECTED]> wrote: > to Patryk: Look at your code again, it will never raise: > > ''' > imported = False > if imported: > raise Exception, "already imported!" > ... > > '''
Well, obviously I need more coffee. Something like that should work though: try: reimported = imported raise Exception, "already imported!" catch NameError: imported = True -- Patryk Zawadzki PLD Linux Distribution --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---