diff --git a/src/common/helpers.py b/src/common/helpers.py index 8d33fd1cd..f6d99c149 100644 --- a/src/common/helpers.py +++ b/src/common/helpers.py @@ -46,7 +46,7 @@ try: import hashlib hash_md5 = hashlib.md5 hash_sha1 = hashlib.sha1 -except: +except ImportError: # Python 2.4 import md5 import sha