How can I override `traitlets.config.catch_config_error()` decorator?
Đang mở
- Ngôn ngữ chính
- Python
- Star
- 653
- Fork
- 217
- Merge trung bình
- 2 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 2
Mô tả
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)?
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.