Skip to content

Commit

Permalink
fix: Avoid logging for missing backends
Browse files Browse the repository at this point in the history
As they may also be part of a backend search loop
  • Loading branch information
alecandido committed Oct 11, 2024
1 parent 9863ca1 commit 95c71fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/qibo/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,7 @@ def construct_backend(backend, **kwargs) -> Backend:
# pylint: disable=unsupported-membership-test
if provider not in e.msg:
raise e
raise_error(
MissingBackend,
raise MissingBackend(
f"The '{backend}' backends' provider is not available. Check that a Python "
f"package named '{provider}' is installed, and it is exposing valid Qibo "
"backends.",
Expand Down

0 comments on commit 95c71fa

Please sign in to comment.