Private GIT

Skip to content
Snippets Groups Projects
Commit 3d312cd3 authored by Fernando's avatar Fernando
Browse files

Change some NZBget ERROR messages to WARNING

parent 31fd7d57
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ def sendNZB(nzb, proper=False):
nzbgetXMLrpc = "http://%(username)s:%(password)s@%(host)s/xmlrpc"
if sickbeard.NZBGET_HOST is None:
logger.log(u"No NZBget host found in configuration. Please configure it.", logger.ERROR)
logger.log(u"No NZBget host found in configuration. Please configure it.", logger.WARNING)
return False
url = nzbgetXMLrpc % {"host": sickbeard.NZBGET_HOST, "username": sickbeard.NZBGET_USERNAME,
......@@ -59,17 +59,17 @@ def sendNZB(nzb, proper=False):
if nzbGetRPC.writelog("INFO", "SickRage connected to drop of %s any moment now." % (nzb.name + ".nzb")):
logger.log(u"Successful connected to NZBget", logger.DEBUG)
else:
logger.log(u"Successful connected to NZBget, but unable to send a message", logger.ERROR)
logger.log(u"Successful connected to NZBget, but unable to send a message", logger.WARNING)
except httplib.socket.error:
logger.log(
u"Please check your NZBget host and port (if it is running). NZBget is not responding to this combination",
logger.ERROR)
logger.WARNING)
return False
except xmlrpclib.ProtocolError, e:
if e.errmsg == "Unauthorized":
logger.log(u"NZBget username or password is incorrect.", logger.ERROR)
logger.log(u"NZBget username or password is incorrect.", logger.WARNING)
else:
logger.log(u"Protocol Error: " + e.errmsg, logger.ERROR)
return False
......@@ -146,8 +146,8 @@ def sendNZB(nzb, proper=False):
logger.log(u"NZB sent to NZBget successfully", logger.DEBUG)
return True
else:
logger.log(u"NZBget could not add %s to the queue" % (nzb.name + ".nzb"), logger.ERROR)
logger.log(u"NZBget could not add %s to the queue" % (nzb.name + ".nzb"), logger.WARNING)
return False
except Exception:
logger.log(u"Connect Error to NZBget: could not add %s to the queue" % (nzb.name + ".nzb"), logger.ERROR)
logger.log(u"Connect Error to NZBget: could not add %s to the queue" % (nzb.name + ".nzb"), logger.WARNING)
return False
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment