ipython / ipython/traitlets

How can I override `traitlets.config.catch_config_error()` decorator?

Open
#427 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
653
Forks
217
Avg merge
2d 21h
Merged PRs (30d)
2

Description

I'm trying to modify the logging of errors performed by [`catch_config_error()` decorator](https://github.com/ipython/traitlets/blob/master/traitlets/config/application.py#L78-L94).
I'm trying to monkey-patch it, but obviously the classes that using it, defined in `application` module, are already been decorated on import time (before monkeypatch).

- Is there some other way foreseen to modify this decorator?
- Would it make sense to refactor it, to support that (e.g. for customizing the application-exit call)?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.