summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/netrc.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/netrc.py b/Lib/netrc.py
index 60849ce..c46ba73 100644
--- a/Lib/netrc.py
+++ b/Lib/netrc.py
@@ -8,10 +8,7 @@ class netrc:
def __init__(self, file=None):
if not file:
file = os.path.join(os.environ['HOME'], ".netrc")
- try:
- fp = open(file)
- except:
- return None
+ fp = open(file)
self.hosts = {}
self.macros = {}
lexer = shlex.shlex(fp)