forked-synapse/synapse/util
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
..
caches Empty iterables should count towards cache usage. (#9028) 2021-01-06 12:33:20 -05:00
__init__.py Remove frozendict_json_encoder and support frozendicts everywhere 2020-10-28 15:56:57 +00:00
async_helpers.py Allow spam-checker modules to be provide async methods. (#8890) 2020-12-11 14:05:15 -05:00
daemonize.py Stop the parent process flushing the logs on exit (#8012) 2020-08-05 09:35:17 +01:00
distributor.py Allow spam-checker modules to be provide async methods. (#8890) 2020-12-11 14:05:15 -05:00
file_consumer.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
frozenutils.py Remove frozendict_json_encoder and support frozendicts everywhere 2020-10-28 15:56:57 +00:00
hash.py Use the v2 Identity Service API for lookups (MSC2134 + MSC2140) (#5976) 2019-09-11 16:02:42 +01:00
httpresourcetree.py Replace instance variations of homeserver with correct case/spacing 2019-11-12 13:08:12 +00:00
iterutils.py Fix chain cover update to handle events with duplicate auth events (#9210) 2021-01-22 19:44:08 +00:00
jsonobject.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
logcontext.py Improve the backwards compatibility re-exports of synapse.logging.context (#5617) 2019-07-05 02:32:02 +10:00
logformatter.py Improve the backwards compatibility re-exports of synapse.logging.context (#5617) 2019-07-05 02:32:02 +10:00
manhole.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
metrics.py Fix "Starting metrics collection from sentinel context" errors (#9053) 2021-01-08 14:33:53 +00:00
module_loader.py 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
msisdn.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
patch_inline_callbacks.py Remove obsolete __future__ imports (#8337) 2020-09-17 08:37:01 -04:00
ratelimitutils.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
retryutils.py Tell Black to format code for Python 3.5 (#8664) 2020-10-27 23:26:36 +00:00
rlimit.py Remove usage of deprecated logger.warn method from codebase (#6271) 2019-10-31 10:23:24 +00:00
stringutils.py Support icons for Identity Providers (#9154) 2021-01-20 08:15:14 -05:00
threepids.py Fix inconsistent handling of upper and lower cases of email addresses. (#7021) 2020-07-03 14:03:13 +01:00
versionstring.py Handle FileNotFound error in checking git repository version (#6284) 2019-10-30 11:00:15 +00:00
wheel_timer.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00