bundles / traitlets 5.15.0 / traitlets / config / application / catch_config_error
function
traitlets.config.application:catch_config_error
Signature
def catch_config_error ( method : T ) → T Summary
Method decorator for catching invalid config (Trait/ArgumentErrors) during init.
Extended Summary
On a TraitError (generally caused by bad config), this will print the trait's message, and exit the app.
For use on init methods, to prevent invoking excepthook on invalid input.
Aliases
-
traitlets.config.catch_config_error