1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-26 09:47:58 +00:00

debug delete/get obj: fix wrong reference to exception

iow RemoteRepository doesn't define this type, only Repository does.
This commit is contained in:
Marian Beermann 2016-10-05 12:27:26 +02:00
parent ce72d24825
commit 4c1a920ed4

View file

@ -767,7 +767,7 @@ def do_debug_get_obj(self, args, repository):
else:
try:
data = repository.get(id)
except repository.ObjectNotFound:
except Repository.ObjectNotFound:
print("object %s not found." % hex_id)
else:
with open(args.path, "wb") as f:
@ -801,7 +801,7 @@ def do_debug_delete_obj(self, args, repository):
repository.delete(id)
modified = True
print("object %s deleted." % hex_id)
except repository.ObjectNotFound:
except Repository.ObjectNotFound:
print("object %s not found." % hex_id)
if modified:
repository.commit()