Merge pull request #1081 from croneter/fix-user
Fix AttributeError if user enters an invalid pin code
This commit is contained in:
commit
59424b2a7c
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue