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

This commit is contained in:
Josip 2015-05-22 18:48:49 +02:00
parent e355a93dc1
commit dd68fbf75d

View File

@ -508,6 +508,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