Skip to content

Commit

Permalink
Client: fix for Function post init (#1386)
Browse files Browse the repository at this point in the history
  • Loading branch information
IceKhan13 authored Jun 26, 2024
1 parent ae8c4e5 commit 6a97161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/qiskit_serverless/core/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __post_init__(self):
title_split = self.title.split("/")
if len(title_split) > 2:
raise ValueError("Invalid title: it can only contain one slash.")
if self.provider != title_split[0]:
if self.provider != title_split[0] and self.provider is not None:
raise ValueError(
"Invalid provider: you provided two different "
+ f"providers [{self.provider}] and [{title_split[0]}]."
Expand Down

0 comments on commit 6a97161

Please sign in to comment.