Created
December 28, 2014 22:12
-
-
Save maphew/6a45d9ecc1ecca96b67d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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