Skip to content

Commit

Permalink
Merge pull request #1505 from qiboteam/silence-missing-backend-2
Browse files Browse the repository at this point in the history
Avoid logging for missing backends
  • Loading branch information
scarrazza authored Nov 14, 2024
2 parents 9474eaa + 29ccf02 commit faa5a7c
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 @@ -331,8 +331,7 @@ def construct_backend(backend, **kwargs) -> Backend: # pylint: disable=R1710
# 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 faa5a7c

Please sign in to comment.