ipython / ipython/traitlets

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

未关闭
#427 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
653
派生
217
平均合并
2 天 21 小时
30 天内合并 PR
2

描述

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)?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。