[issue42177] Improving KeyError exception

2020-10-27 Thread Orian Zinger
New submission from Orian Zinger : Hi all, As a Python developer, I encountered lots of blurry exception messages in the product logs such as: Failed to do something. Exception: 'some key' I believe printing the key name without explaining the exception itself is bad (explicit

[issue18163] Add a 'key' attribute to KeyError

2020-10-05 Thread Orian Zinger
Change by Orian Zinger : -- components: -Library (Lib) ___ Python tracker <https://bugs.python.org/issue18163> ___ ___ Python-bugs-list mailing list Unsub

[issue18163] Add a 'key' attribute to KeyError

2020-10-05 Thread Orian Zinger
Orian Zinger added the comment: Hi all, As a Python developer, I encountered lots of blurry exception messages in the product logs such as: Failed to do something. Exception: 'some key' I believe printing the key name without explaining the exception itself is bad (explicit