diff --git a/src/borg/repository.py b/src/borg/repository.py index 23c3b15096..66db295c2e 100644 --- a/src/borg/repository.py +++ b/src/borg/repository.py @@ -336,11 +336,11 @@ def list(self, limit=None, marker=None): list infos starting from after id . each info is a tuple (id, storage_size). """ - self._lock_refresh() collect = True if marker is None else False result = [] infos = self.store.list("data") # generator yielding ItemInfos while True: + self._lock_refresh() try: info = next(infos) except StoreObjectNotFound: