This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients serhiy.storchaka
Date 2017-03-08.21:14:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1489007676.29.0.138385616596.issue29762@psf.upfronthosting.co.za>
In-reply-to
Content
Sometimes after catching some exception the new exception of more appropriate type and with more appropriate message is raised. The initial exception often is not relevant to the final exception, it is raised only due to using EAFP rather than LBYL. It should be excluded from the traceback by using "raise from None". This idiom is often used. Following PR makes it be used in more cases.
History
Date User Action Args
2017-03-08 21:14:36serhiy.storchakasetrecipients: + serhiy.storchaka
2017-03-08 21:14:36serhiy.storchakasetmessageid: <1489007676.29.0.138385616596.issue29762@psf.upfronthosting.co.za>
2017-03-08 21:14:36serhiy.storchakalinkissue29762 messages
2017-03-08 21:14:36serhiy.storchakacreate