Skip to content

Instantly share code, notes, and snippets.

@seanjensengrey
Created March 11, 2017 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanjensengrey/124550e4ce641a58b4cfb91c1f1eda9a to your computer and use it in GitHub Desktop.
Save seanjensengrey/124550e4ce641a58b4cfb91c1f1eda9a to your computer and use it in GitHub Desktop.
def do(cmd):
try:
return (True, cmd())
except Exception as e:
return (False, e)
do(lambda x: os.access(".",123123123123))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment