Merge pull request #41 from ennoborg/maintenance/gramps41

8663: add exception for UnicodeEncodeError.
This commit is contained in:
Doug Blank 2015-07-13 23:12:01 -04:00 committed by Doug Blank
parent 4f883d6c8c
commit ed2a5bcdff

View File

@ -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