Fix TypeError when PMS connection lost
This commit is contained in:
parent
f785b828ca
commit
b0d1fcfe8a
1 changed files with 2 additions and 0 deletions
|
@ -127,6 +127,8 @@ class UserClient(threading.Thread):
|
||||||
self.sslcert = self.getSSL()
|
self.sslcert = self.getSSL()
|
||||||
|
|
||||||
if authenticated is False:
|
if authenticated is False:
|
||||||
|
if self.currServer is None:
|
||||||
|
return False
|
||||||
log.debug('Testing validity of current token')
|
log.debug('Testing validity of current token')
|
||||||
res = PlexAPI.PlexAPI().CheckConnection(self.currServer,
|
res = PlexAPI.PlexAPI().CheckConnection(self.currServer,
|
||||||
token=self.currToken,
|
token=self.currToken,
|
||||||
|
|
Loading…
Reference in a new issue