We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 691c83e commit 06e4c6bCopy full SHA for 06e4c6b
1 file changed
src/models/config.py
@@ -372,7 +372,8 @@ def jwk_configuration(self) -> JwkConfiguration:
372
raise ValueError(
373
"JWK configuration is only available for JWK token authentication module"
374
)
375
- assert self.jwk_config is not None, "JWK configuration should not be None"
+ if self.jwk_config is None:
376
+ raise ValueError("JWK configuration should not be None")
377
return self.jwk_config
378
379
0 commit comments