We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4d6a10 commit 64f7667Copy full SHA for 64f7667
1 file changed
synapse/config/matrixrtc.py
@@ -32,18 +32,13 @@ class MatrixRtcConfig(Config):
32
def read_config(
33
self, config: JsonDict, allow_secrets_in_config: bool, **kwargs: Any
34
) -> None:
35
-
36
matrix_rtc: JsonDict = config.get("matrix_rtc", {})
37
self.services = matrix_rtc.get("services", [])
38
39
if not isinstance(self.services, list):
40
raise ConfigError(
41
- "MatrixRTC endpoints needs to be an array of endpoints",
42
- ("matrix_rtc",)
+ "MatrixRTC endpoints needs to be an array of endpoints", ("matrix_rtc",)
43
)
44
45
if any(("type" not in e for e in self.services)):
46
- raise ConfigError(
47
- "MatrixRTC endpoint is missing type",
48
49
- )
+ raise ConfigError("MatrixRTC endpoint is missing type", ("matrix_rtc",))
0 commit comments