Catch error when md5sum file is corrupted

Fix #622
This commit is contained in:
Julien Duponchelle committed 2016-07-28 12:35:23 +02:00
1 parent b1b2bbd581
commit 7d90a73ed2
1 file changed
+2 -1
+2 -1
View File
@@ -36,7 +36,8 @@ def md5sum(path):
try:
with open(path + '.md5sum') as f:
return f.read()
except OSError:
# Unicode error is when user rename an image to .md5sum ....
except (OSError, UnicodeDecodeError):
pass
try: