From ae0a039216dc9625ad19cb30ca78999f311be0c0 Mon Sep 17 00:00:00 2001 From: Enno Borgsteede Date: Sun, 12 Jul 2015 11:41:57 +0200 Subject: [PATCH] 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 ed6f316f1..957ad0cc7 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