8663: add exception for UnicodeEncodeError.
This commit is contained in:
parent
296e8ca562
commit
ae0a039216
@ -195,4 +195,6 @@ def create_checksum(full_path):
|
|||||||
md5sum = hashlib.md5(media_file.read()).hexdigest()
|
md5sum = hashlib.md5(media_file.read()).hexdigest()
|
||||||
except IOError:
|
except IOError:
|
||||||
md5sum = ''
|
md5sum = ''
|
||||||
|
except UnicodeEncodeError:
|
||||||
|
md5sum = ''
|
||||||
return md5sum
|
return md5sum
|
||||||
|
Loading…
Reference in New Issue
Block a user