summaryrefslogtreecommitdiff
path: root/Lib/configparser.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-04-05 09:37:24 +0300
committerGitHub <noreply@github.com>2017-04-05 09:37:24 +0300
commit5affd23e6f42125998724787025080a24839266e (patch)
tree8b7ca82362e78a32805b117d574082d512251d3c /Lib/configparser.py
parent43ba8861e0ad044efafa46a7cc04e12ac5df640e (diff)
downloadcpython-git-5affd23e6f42125998724787025080a24839266e.tar.gz
bpo-29762: More use "raise from None". (#569)
This hides unwanted implementation details from tracebacks.
Diffstat (limited to 'Lib/configparser.py')
-rw-r--r--Lib/configparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/configparser.py b/Lib/configparser.py
index 230ab2b017..ea971f3933 100644
--- a/Lib/configparser.py
+++ b/Lib/configparser.py
@@ -1138,7 +1138,7 @@ class RawConfigParser(MutableMapping):
sectiondict = self._sections[section]
except KeyError:
if section != self.default_section:
- raise NoSectionError(section)
+ raise NoSectionError(section) from None
# Update with the entry specific variables
vardict = {}
if vars: