mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-23 22:52:25 +00:00
parent
b1b2bbd581
commit
7d90a73ed2
@ -36,7 +36,8 @@ def md5sum(path):
|
|||||||
try:
|
try:
|
||||||
with open(path + '.md5sum') as f:
|
with open(path + '.md5sum') as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
except OSError:
|
# Unicode error is when user rename an image to .md5sum ....
|
||||||
|
except (OSError, UnicodeDecodeError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user