Fix Provider not found error

This commit is contained in:
Heiner Lohaus 2024-03-16 20:13:26 +01:00
parent 930ff2b888
commit 59b99a6452

View File

@ -51,7 +51,7 @@ def get_model_and_provider(model : Union[Model, str],
provider = IterProvider(provider_list)
elif provider in ProviderUtils.convert:
provider = ProviderUtils.convert[provider]
else:
elif provider:
raise ProviderNotFoundError(f'Provider not found: {provider}')
if isinstance(model, str):