Skip to content

Instantly share code, notes, and snippets.

@maphew
Created December 28, 2014 22:12
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 maphew/6a45d9ecc1ecca96b67d to your computer and use it in GitHub Desktop.
Save maphew/6a45d9ecc1ecca96b67d to your computer and use it in GitHub Desktop.
debug = True
try:
their_md5 = 'c38f03d2b7160f891fc36ec776ca4685'
my_md5 = 'c64e53bbb108a1c65e31eb4d1bb8e3b7'
if their_md5 != my_md5:
raise ValueError('md5 sum does not match!')
except:
if debug:
raise
else:
print("{}: {}".format(type(e).__name__, e))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment