You are viewing an older version (5.14.3). Go to latest (5.15.0)
{ } Raw JSON

bundles / traitlets 5.14.3 / traitlets / config / application / catch_config_error

function

traitlets.config.application:catch_config_error

source: /traitlets/config/application.py :106

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