8663: add exception for UnicodeEncodeError.

This commit is contained in:
Enno Borgsteede 2015-07-12 11:41:57 +02:00
parent 296e8ca562
commit ae0a039216

View File

@ -195,4 +195,6 @@ def create_checksum(full_path):
md5sum = hashlib.md5(media_file.read()).hexdigest()
except IOError:
md5sum = ''
except UnicodeEncodeError:
md5sum = ''
return md5sum