summary refs log tree commit diff
path: root/synapse/config/repository.py
diff options
context:
space:
mode:
authorJonathan de Jong <jonathan@automatia.nl>2021-03-16 19:19:27 +0100
committerGitHub <noreply@github.com>2021-03-16 14:19:27 -0400
commit27d2820c33d94cd99aea128b6ade76a7de838c3d (patch)
treec81628d58ab2daf1184f1654df34ed0d2be30cd2 /synapse/config/repository.py
parentAdd SSO attribute requirements for OIDC providers (#9609) (diff)
downloadsynapse-27d2820c33d94cd99aea128b6ade76a7de838c3d.tar.xz
Enable flake8-bugbear, but disable most checks. (#9499)
* Adds B00 to ignored checks.
* Fixes remaining issues.
Diffstat (limited to 'synapse/config/repository.py')
-rw-r--r--synapse/config/repository.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/config/repository.py b/synapse/config/repository.py
index 69d9de5a43..061c4ec83f 100644
--- a/synapse/config/repository.py
+++ b/synapse/config/repository.py
@@ -176,7 +176,9 @@ class ContentRepositoryConfig(Config):
                 check_requirements("url_preview")
 
             except DependencyException as e:
-                raise ConfigError(e.message)
+                raise ConfigError(
+                    e.message  # noqa: B306, DependencyException.message is a property
+                )
 
             if "url_preview_ip_range_blacklist" not in config:
                 raise ConfigError(