Merge pull request #41 from ennoborg/maintenance/gramps41
8663: add exception for UnicodeEncodeError.
This commit is contained in:
parent
4f883d6c8c
commit
ed2a5bcdff
@ -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