Fix AttributeError

This commit is contained in:
Croneter 2018-05-30 13:10:54 +02:00
parent 114895c183
commit 7bf6d19708

View file

@ -264,8 +264,10 @@ class UserClient(Thread):
Reset all user settings Reset all user settings
""" """
LOG.debug("Reset UserClient authentication.") LOG.debug("Reset UserClient authentication.")
try:
self.do_utils.stopSession() self.do_utils.stopSession()
except AttributeError:
pass
window('plex_authenticated', clear=True) window('plex_authenticated', clear=True)
state.AUTHENTICATED = False state.AUTHENTICATED = False
window('pms_token', clear=True) window('pms_token', clear=True)