Merge pull request #1081 from croneter/fix-user

Fix AttributeError if user enters an invalid pin code
This commit is contained in:
croneter 2019-12-08 16:48:12 +01:00 committed by GitHub
commit 59424b2a7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,13 +169,13 @@ class UserSelectWindow(kodigui.BaseWindow):
utils.settings('plexToken'),
utils.settings('plex_machineIdentifier'))
if self.user.authToken is None:
self.user = None
item.setProperty('pin', item.dataSource.title)
item.setProperty('editing.pin', '')
# 'Error': 'Login failed with plex.tv for user'
utils.messageDialog(utils.lang(30135),
'%s %s' % (utils.lang(39229),
'{}{}'.format(utils.lang(39229),
self.user.username))
self.user = None
return
self.doClose()