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