summaryrefslogtreecommitdiffstats
path: root/Lib/netrc.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/netrc.py')
-rw-r--r--Lib/netrc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/netrc.py b/Lib/netrc.py
index bbb3d23..aa8eea3 100644
--- a/Lib/netrc.py
+++ b/Lib/netrc.py
@@ -26,7 +26,7 @@ class netrc:
try:
file = os.path.join(os.environ['HOME'], ".netrc")
except KeyError:
- raise OSError("Could not find .netrc: $HOME is not set")
+ raise OSError("Could not find .netrc: $HOME is not set") from None
self.hosts = {}
self.macros = {}
with open(file) as fp: