mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-10 14:15:43 +00:00
simple error msg for non-existing repo, fixes #8475
do not show a traceback for this (expected) case.
This commit is contained in:
parent
dfbd3b7d5f
commit
a49de25fe3
1 changed files with 4 additions and 1 deletions
|
@ -234,7 +234,10 @@ class Repository:
|
|||
self.lock = Lock(self.store, exclusive, timeout=lock_wait).acquire()
|
||||
else:
|
||||
self.lock = None
|
||||
readme = self.store.load("config/readme").decode()
|
||||
try:
|
||||
readme = self.store.load("config/readme").decode()
|
||||
except StoreObjectNotFound:
|
||||
raise self.DoesNotExist(str(self._location)) from None
|
||||
if readme != REPOSITORY_README:
|
||||
raise self.InvalidRepository(str(self._location))
|
||||
self.version = int(self.store.load("config/version").decode())
|
||||
|
|
Loading…
Add table
Reference in a new issue