Closed hagenw closed 10 months ago
Reading https://audeering.github.io/audbackend/api/audbackend.Artifactory.html#exists it seems that we should change
if backend.exists(header, version):
to
if backend.exists(header, version, suppress_backend_errors=True):
The problem happens already earlier in the code when trying to access the repo, which might fail if a user has no access rights, or only access rights to certain folders within the repo, or the repo does not exist:
This means using suppress_backend_errors=True
in backend.exists()
is not needed, but I would argue that it adds no harm and we are more on the safe side with it.
In addition, it turns out that the docstring description of backend.exists has actually a bug and does not raise a BackendError
if a path does not exists.
E.g. loading
emodb
from the public repository might fail with:My guess is that it fails with an error when looking up the backend at https://github.com/audeering/audb/blob/ba8c0d9c3b51a33c6e0588752568b3971d217bf8/audb/core/utils.py#L73-L79.