Don't declare connection when poking PMS

This commit is contained in:
tomkat83 2016-04-08 13:18:19 +02:00
parent 53b15aa51a
commit 3d5a3e9bfb
2 changed files with 7 additions and 5 deletions

View file

@ -421,7 +421,8 @@ def PMSHttpsEnabled(url):
doUtils = downloadutils.DownloadUtils().downloadUrl doUtils = downloadutils.DownloadUtils().downloadUrl
res = doUtils('https://%s/identity' % url, res = doUtils('https://%s/identity' % url,
authenticate=False, authenticate=False,
verifySSL=False) verifySSL=False,
dontSignout=True)
try: try:
res.attrib res.attrib
except: except:

View file

@ -200,6 +200,7 @@ class DownloadUtils():
# THE EXCEPTIONS # THE EXCEPTIONS
except requests.exceptions.ConnectionError as e: except requests.exceptions.ConnectionError as e:
# Connection error # Connection error
if dontSignout is False:
self.logMsg("Server unreachable at: %s" % url, -1) self.logMsg("Server unreachable at: %s" % url, -1)
self.logMsg(e, 2) self.logMsg(e, 2)
# Make the addon aware of status # Make the addon aware of status