Commit 87037161 authored by Alexander Pace's avatar Alexander Pace
Browse files

Update sleeklvalert.py

parent e0cca98f
......@@ -6,7 +6,7 @@ import uuid
import ssl
import pkg_resources
from ligo.lvalert.utils.safe_netrc import NetrcParseError
#from ligo.lvalert.utils.safe_netrc import NetrcParseError
from ligo.lvalert.utils import safe_netrc as _netrc
import sleekxmpp
......@@ -30,7 +30,7 @@ else:
def _get_default_login(netrcfile, server):
try:
netrcfile = _netrc(netrcfile)
except (OSError, NetrcParseError):
except (OSError, _netrc.NetrcParseError):
log.exception('Cannot load netrc file: %s', netrc)
return None, None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment