Describe the bug
the reload() function of the LazySettings class does not clear the _loaded_hooks attribute. Because of that, when trying to reload and rerun the loaders, the hook won't run again.
To Reproduce
Steps to reproduce the behavior:
Configure a post hook just like in the docs. Create a DynaConf object and then run reload() on the object.
Expected behavior
The post hook should run after every reload.
Additional context
I'll be glad to make a PR for this myself.
Describe the bug
the
reload()function of theLazySettingsclass does not clear the_loaded_hooksattribute. Because of that, when trying to reload and rerun the loaders, the hook won't run again.To Reproduce
Steps to reproduce the behavior:
Configure a post hook just like in the docs. Create a
DynaConfobject and then runreload()on the object.Expected behavior
The post hook should run after every reload.
Additional context
I'll be glad to make a PR for this myself.