diff --git a/src/qibo/backends/__init__.py b/src/qibo/backends/__init__.py index 6fa7ae1950..5ba27d63f1 100644 --- a/src/qibo/backends/__init__.py +++ b/src/qibo/backends/__init__.py @@ -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.",