Skip to content

Commit

Permalink
fix: Avoid logging for missing backends
Browse files Browse the repository at this point in the history
Restore 95c71fa after removal in
2fdbf85
  • Loading branch information
alecandido committed Oct 29, 2024
1 parent a074d17 commit 29ccf02
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 @@ -329,8 +329,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 29ccf02

Please sign in to comment.