Don't declare connection when poking PMS
This commit is contained in:
parent
53b15aa51a
commit
3d5a3e9bfb
2 changed files with 7 additions and 5 deletions
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue