8398: lock.file with accent letter cause gramps to crash at start
This commit is contained in:
parent
cc2f803b86
commit
085d1ee095
@ -519,6 +519,6 @@ def find_locker_name(dirpath):
|
|||||||
# feature request 2356: avoid genitive form
|
# feature request 2356: avoid genitive form
|
||||||
last = _("Locked by %s") % username
|
last = _("Locked by %s") % username
|
||||||
ifile.close()
|
ifile.close()
|
||||||
except (OSError, IOError):
|
except (OSError, IOError, UnicodeDecodeError):
|
||||||
last = _("Unknown")
|
last = _("Unknown")
|
||||||
return last
|
return last
|
||||||
|
Loading…
x
Reference in New Issue
Block a user