Maintenance will be performed on,,, and on Tuesday 26 May 2020 starting at approximately 10am CDT. It is expected to take around 30 minutes and will involve a short period of downtime, around 5 minutes, towards the end of the maintenance period. Please address any questions, comments, or concerns to

Commit 99157f6f authored by Tanner Prestegard's avatar Tanner Prestegard

Bugfix for NetrcParseError handling

Fixing bug which expects NetrcParseError to be attached to
safe_netrc class.
parent 2af7bb3f
......@@ -51,8 +51,8 @@ else:
def _get_default_login(netrcfile, server):
netrcfile = _netrc(netrcfile)
except (OSError, _netrc.NetrcParseError):
log.exception('Cannot load netrc file: %s', netrc)
except (OSError, netrc.NetrcParseError) as e:
log.exception('Cannot load netrc file (%s): %s', netrcfile, e)
return None, None
auth = netrcfile.authenticators(server)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment