Skip to content

Commit 95c71fa

Browse files
committed
fix: Avoid logging for missing backends
As they may also be part of a backend search loop
1 parent 9863ca1 commit 95c71fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/qibo/backends/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,7 @@ def construct_backend(backend, **kwargs) -> Backend:
231231
# pylint: disable=unsupported-membership-test
232232
if provider not in e.msg:
233233
raise e
234-
raise_error(
235-
MissingBackend,
234+
raise MissingBackend(
236235
f"The '{backend}' backends' provider is not available. Check that a Python "
237236
f"package named '{provider}' is installed, and it is exposing valid Qibo "
238237
"backends.",

0 commit comments

Comments
 (0)