8398: lock.file with accent letter cause gramps to crash at start

This commit is contained in:
Josip 2015-05-22 18:55:21 +02:00
parent cc2f803b86
commit 085d1ee095

View File

@ -519,6 +519,6 @@ def find_locker_name(dirpath):
# feature request 2356: avoid genitive form
last = _("Locked by %s") % username
ifile.close()
except (OSError, IOError):
except (OSError, IOError, UnicodeDecodeError):
last = _("Unknown")
return last