diff --git a/gramps/plugins/tool/check.py b/gramps/plugins/tool/check.py index aed913f4d..1972cc9d1 100644 --- a/gramps/plugins/tool/check.py +++ b/gramps/plugins/tool/check.py @@ -345,7 +345,7 @@ class CheckIntegrity(object): logging.warning(' FAIL: encoding error on media object ' '"%(gid)s" path "%(path)s"' % {'gid' : obj.gramps_id, 'path' : obj.path}) - if not isinstance(data[2], UNITYPE): + if not isinstance(data[4], UNITYPE): logging.warning(' FAIL: encoding error on media object ' '"%(gid)s" description "%(desc)s"' % {'gid' : obj.gramps_id, 'desc' : obj.desc})