From 3846263dcde84ffd99b0eb46694594d5a8dd65d1 Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Wed, 7 Sep 2022 15:16:10 +0100 Subject: [PATCH] Add .strip() --- synapse/config/key.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/config/key.py b/synapse/config/key.py index b5a94e7591a5..5c7a8ad3324b 100644 --- a/synapse/config/key.py +++ b/synapse/config/key.py @@ -221,7 +221,7 @@ def read_signing_keys(self, signing_key_path: str, name: str) -> List[SigningKey [ signing_key_line for signing_key_line in signing_keys.splitlines(keepends=False) - if signing_key_line + if signing_key_line.strip() ] )