Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
lint !
Browse files Browse the repository at this point in the history
  • Loading branch information
agrimpard authored Aug 24, 2023
1 parent 02acd2b commit d2f271b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion synapse/config/cas.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:
self.cas_service_url = public_baseurl + "_matrix/client/r0/login/cas/ticket"

self.cas_protocol_version = cas_config.get("protocol_version")
if self.cas_protocol_version is not None and self.cas_protocol_version not in [1, 2, 3]:
if (
self.cas_protocol_version is not None
and self.cas_protocol_version not in [1, 2, 3]
):
raise ConfigError(
"Unsupported CAS protocol version %s (only versions 1, 2, 3 are supported)"
% (self.cas_protocol_version,),
Expand Down

0 comments on commit d2f271b

Please sign in to comment.