MatrixSynapse/synapse
Andrew Morgan a64c29926e
Pass a dict, instead of None, to modules if a None config is specified in the homeserver config (#9229)
If a Synapse module's config block were empty in YAML, thus being translated to a `Nonetype` in Python, then some modules could fail as that None ends up getting passed to their `parse_config` method. Modules are expected to accept a `dict` instead.

This PR ensures that if the user does end up specifying an empty config block (such as what [the default oidc config in the sample config](5310808d3b/docs/sample_config.yaml (L1816-L1845)) states) then `None` is not passed to the module. An empty dict is passed instead.

This code assumes that no existing modules are relying on receiving a `None` config block, but I'd really hope that they aren't.
2021-01-27 11:49:31 +00:00
..
_scripts
api Give `public_baseurl` a default value (#9159) 2021-01-20 12:30:41 +00:00
app Allow moving account data and receipts streams off master (#9104) 2021-01-18 15:47:59 +00:00
appservice
config Do not require the CAS service URL setting (use public_baseurl instead). (#9199) 2021-01-26 10:49:25 -05:00
crypto Add type hints to the crypto module. (#8999) 2021-01-04 10:04:50 -05:00
events Remote dependency on distutils (#9125) 2021-01-15 15:59:20 +00:00
federation Precompute joined hosts and store in Redis (#9198) 2021-01-26 13:57:31 +00:00
groups
handlers Add type hints to various handlers. (#9223) 2021-01-26 10:50:21 -05:00
http Support icons for Identity Providers (#9154) 2021-01-20 08:15:14 -05:00
logging Add type hints to the logging context code. (#8939) 2021-01-05 08:06:55 -05:00
metrics Various clean-ups to the logging context code (#8935) 2020-12-14 14:19:47 -05:00
module_api
push Handle missing content keys when calculating presentable names. (#9165) 2021-01-25 07:27:16 -05:00
replication Precompute joined hosts and store in Redis (#9198) 2021-01-26 13:57:31 +00:00
res Support icons for Identity Providers (#9154) 2021-01-20 08:15:14 -05:00
rest Try to recover from unknown encodings when previewing media. (#9164) 2021-01-26 07:32:17 -05:00
server_notices Use the account handler in additional places. (#9166) 2021-01-20 10:44:52 +00:00
spam_checker_api
state Precompute joined hosts and store in Redis (#9198) 2021-01-26 13:57:31 +00:00
static Add initial support for a "pick your IdP" page (#9017) 2021-01-05 11:25:28 +00:00
storage Add type hints to various handlers. (#9223) 2021-01-26 10:50:21 -05:00
streams
util Pass a dict, instead of None, to modules if a None config is specified in the homeserver config (#9229) 2021-01-27 11:49:31 +00:00
__init__.py 1.26.0rc2 2021-01-25 08:25:40 -05:00
event_auth.py Ensure that event.redacts is the proper type before handling it (#8457) 2020-10-05 10:24:17 -04:00
notifier.py Fix "Starting metrics collection from sentinel context" errors (#9053) 2021-01-08 14:33:53 +00:00
python_dependencies.py Bump psycopg2 version (#9204) 2021-01-22 11:14:49 +00:00
secrets.py
server.py Precompute joined hosts and store in Redis (#9198) 2021-01-26 13:57:31 +00:00
types.py Support icons for Identity Providers (#9154) 2021-01-20 08:15:14 -05:00
visibility.py Try and drop stale extremities. (#8929) 2020-12-18 09:49:18 +00:00