Skip to content

Instantly share code, notes, and snippets.

@rhaamo
Created June 13, 2010 17:12
Show Gist options
  • Save rhaamo/436816 to your computer and use it in GitHub Desktop.
Save rhaamo/436816 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
def connect():
print "Connect called"
raise BaseException, "ERROR"
toto=0
while 1:
try:
connect()
except:
toto=toto+1
if toto == 3:
print "break"
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment