Fix issue where we are double processing config.ini items (#2274)

* In some cases with numeric config items it appears that we can end up processing a string twice. This issue fixes it so that we only process the strings once at configparser load time with `before_get`
This commit is contained in:
Kevin Chung
2023-03-28 14:07:52 -04:00
committed by GitHub
parent b17adaf7aa
commit 870eefb184

View File

@@ -263,4 +263,4 @@ class TestingConfig(ServerConfig):
# Actually initialize ServerConfig to allow us to add more attributes on
Config = ServerConfig()
for k, v in config_ini.items("extra"):
setattr(Config, k, process_string_var(v))
setattr(Config, k, v)