From ed2a5bcdff090965cfe03d04921e8a9ddc5d93b1 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Mon, 13 Jul 2015 23:12:01 -0400 Subject: [PATCH] Merge pull request #41 from ennoborg/maintenance/gramps41 8663: add exception for UnicodeEncodeError. --- gramps/gen/utils/file.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gen/utils/file.py b/gramps/gen/utils/file.py index ea1794b2a..6d36d466d 100644 --- a/gramps/gen/utils/file.py +++ b/gramps/gen/utils/file.py @@ -195,4 +195,6 @@ def create_checksum(full_path): md5sum = hashlib.md5(media_file.read()).hexdigest() except IOError: md5sum = '' + except UnicodeEncodeError: + md5sum = '' return md5sum