hopfenspace / MateBot

Micro service providing an API for MateBot clients

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement lazy config loading

CrsiX opened this issue · comments

commented

Loading the configuration during the program startup (with import of the module config) makes the program unable to run when the config file is malformed or certain keys are not present. Loading the configuration file later (during the loading phases in main.py for example) and combining this with #75 makes it very handy for the user to tweak configurations as it allows to accurately tell where something isn't correct.

commented

This issue will be closed. It doesn't make sense to force lazy config loading when a malformed or missing config file crashes/impacts the program at a later point, possibly long after startup.