bpo-29762: More use "raise from None". (#569)

This hides unwanted implementation details from tracebacks.
This commit is contained in:
Serhiy Storchaka 2017-04-05 09:37:24 +03:00 committed by GitHub
parent 43ba8861e0
commit 5affd23e6f
30 changed files with 50 additions and 48 deletions

View file

@ -866,7 +866,7 @@ class _NNTPBase:
try:
[resp_num, path] = resp.split()
except ValueError:
raise NNTPReplyError(resp)
raise NNTPReplyError(resp) from None
else:
return resp, path