mirror of https://github.com/borgbackup/borg.git
do not crash on empty lock.roster, fixes #232
This commit is contained in:
parent
6f637bed2f
commit
c50f32426b
|
@ -169,6 +169,9 @@ class LockRoster:
|
|||
if err.errno != errno.ENOENT:
|
||||
raise
|
||||
data = {}
|
||||
except ValueError:
|
||||
# corrupt/empty roster file?
|
||||
data = {}
|
||||
return data
|
||||
|
||||
def save(self, data):
|
||||
|
|
Loading…
Reference in New Issue