This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-20
lines changed Expand file tree Collapse file tree 2 files changed +1
-20
lines changed Original file line number Diff line number Diff line change
1
+ Use the default template file when its equivalent is not found in a custom template directory.
Original file line number Diff line number Diff line change 26
26
27
27
from synapse .api .room_versions import KNOWN_ROOM_VERSIONS
28
28
from synapse .http .endpoint import parse_and_validate_server_name
29
- from synapse .python_dependencies import DependencyException , check_requirements
30
29
31
30
from ._base import Config , ConfigError
32
31
@@ -514,8 +513,6 @@ class LimitRemoteRoomsConfig(object):
514
513
)
515
514
)
516
515
517
- _check_resource_config (self .listeners )
518
-
519
516
self .cleanup_extremities_with_dummy_events = config .get (
520
517
"cleanup_extremities_with_dummy_events" , True
521
518
)
@@ -1238,20 +1235,3 @@ def _warn_if_webclient_configured(listeners: Iterable[ListenerConfig]) -> None:
1238
1235
if name == "webclient" :
1239
1236
logger .warning (NO_MORE_WEB_CLIENT_WARNING )
1240
1237
return
1241
-
1242
-
1243
- def _check_resource_config (listeners : Iterable [ListenerConfig ]) -> None :
1244
- resource_names = {
1245
- res_name
1246
- for listener in listeners
1247
- if listener .http_options
1248
- for res in listener .http_options .resources
1249
- for res_name in res .names
1250
- }
1251
-
1252
- for resource in resource_names :
1253
- if resource == "consent" :
1254
- try :
1255
- check_requirements ("resources.consent" )
1256
- except DependencyException as e :
1257
- raise ConfigError (e .message )
You can’t perform that action at this time.
0 commit comments