Skip to content

Instantly share code, notes, and snippets.

@sdshlanta
Last active August 9, 2016 18:40
Show Gist options
  • Save sdshlanta/b8af9a862d9c59b785739c3a361d7353 to your computer and use it in GitHub Desktop.
Save sdshlanta/b8af9a862d9c59b785739c3a361d7353 to your computer and use it in GitHub Desktop.
def boilerPlate(servName):
def realDec(opener):
def newOpen(*args, **kwargs):
while not TheEndOfTime:
try:
opener(*args, **kwargs)
except Exception, e:
if debug:
print servName
print e
else:
pass
delay()
return newOpen
return realDec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment