mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-26 01:09:08 +00:00
do not crash on empty lock.roster, fixes #232
This commit is contained in:
parent
6f637bed2f
commit
c50f32426b
1 changed files with 3 additions and 0 deletions
|
@ -169,6 +169,9 @@ def load(self):
|
||||||
if err.errno != errno.ENOENT:
|
if err.errno != errno.ENOENT:
|
||||||
raise
|
raise
|
||||||
data = {}
|
data = {}
|
||||||
|
except ValueError:
|
||||||
|
# corrupt/empty roster file?
|
||||||
|
data = {}
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def save(self, data):
|
def save(self, data):
|
||||||
|
|
Loading…
Reference in a new issue