You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raise an exception during module loading if the checker of a config option returns False
Related Problem
current behavior if the checker returns False: the config option is not converted to its value but stays type ConfigOption. Usually this causes an exception to be raised once the module tries to do something with the config option. It is then difficult to understand what the original problem was.
Considered Alternatives
log a warning
Additional Context
No response
Contact Details
No response
The text was updated successfully, but these errors were encountered:
Hi @qku ,
yeah, checker has been barely used and was never properly implemented.
In the upcoming major release checker will be removed. There will be only constructor which can be used for any kind of type/value conversion as well as sanity checking by raising exceptions, e.g. ValueError.
In case of an exception in constructor for an optional ConfigOption the error will be logged and the meta variable will be intialized to its default value.
This should simplify things a bit and make the ConfigOption (and StatusVar) behaviour more predictable.
Feature Description
raise an exception during module loading if the checker of a config option returns
False
Related Problem
current behavior if the checker returns False: the config option is not converted to its value but stays type
ConfigOption
. Usually this causes an exception to be raised once the module tries to do something with the config option. It is then difficult to understand what the original problem was.Considered Alternatives
log a warning
Additional Context
No response
Contact Details
No response
The text was updated successfully, but these errors were encountered: