mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-27 02:08:54 +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:
parent
ce72d24825
commit
4c1a920ed4
1 changed files with 2 additions and 2 deletions
|
@ -767,7 +767,7 @@ def do_debug_get_obj(self, args, repository):
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
data = repository.get(id)
|
data = repository.get(id)
|
||||||
except repository.ObjectNotFound:
|
except Repository.ObjectNotFound:
|
||||||
print("object %s not found." % hex_id)
|
print("object %s not found." % hex_id)
|
||||||
else:
|
else:
|
||||||
with open(args.path, "wb") as f:
|
with open(args.path, "wb") as f:
|
||||||
|
@ -801,7 +801,7 @@ def do_debug_delete_obj(self, args, repository):
|
||||||
repository.delete(id)
|
repository.delete(id)
|
||||||
modified = True
|
modified = True
|
||||||
print("object %s deleted." % hex_id)
|
print("object %s deleted." % hex_id)
|
||||||
except repository.ObjectNotFound:
|
except Repository.ObjectNotFound:
|
||||||
print("object %s not found." % hex_id)
|
print("object %s not found." % hex_id)
|
||||||
if modified:
|
if modified:
|
||||||
repository.commit()
|
repository.commit()
|
||||||
|
|
Loading…
Reference in a new issue