Skip to content

Commit 06e4c6b

Browse files
committed
Remove assert from config model
1 parent 691c83e commit 06e4c6b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/models/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,8 @@ def jwk_configuration(self) -> JwkConfiguration:
372372
raise ValueError(
373373
"JWK configuration is only available for JWK token authentication module"
374374
)
375-
assert self.jwk_config is not None, "JWK configuration should not be None"
375+
if self.jwk_config is None:
376+
raise ValueError("JWK configuration should not be None")
376377
return self.jwk_config
377378

378379

0 commit comments

Comments
 (0)