1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-27 02:08:54 +00:00

Merge pull request #246 from ThomasWaldmann/lock-roster-fix

do not crash on empty lock.roster, fixes #232
This commit is contained in:
TW 2015-10-06 00:14:31 +02:00
commit 934f18f447

View file

@ -169,6 +169,9 @@ def load(self):
if err.errno != errno.ENOENT:
raise
data = {}
except ValueError:
# corrupt/empty roster file?
data = {}
return data
def save(self, data):