Skip to content

Commit

Permalink
Merge pull request #1486 from qiboteam/silence-missing-backend
Browse files Browse the repository at this point in the history
Avoid logging for missing backends
  • Loading branch information
alecandido authored Oct 14, 2024
2 parents 9863ca1 + 95c71fa commit 2dc31e6
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 2dc31e6

Please sign in to comment.