ipython / ipython/traitlets

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

オープン
#427 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
653
フォーク
217
平均マージ
2日 21時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。