Skip to content

Commit

Permalink
fix: Fix error type raised by backend construction
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Aug 21, 2024
1 parent 01bcd4f commit bd39482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibo/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def construct_backend(backend, **kwargs) -> Backend:
if provider not in e.msg:
raise e
raise_error(
ValueError,
ImportError,
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 bd39482

Please sign in to comment.