Fix IndexError and AttributeError
This commit is contained in:
parent
a716f8a2c1
commit
1f0a114d35
2 changed files with 11 additions and 8 deletions
|
@ -25,8 +25,11 @@ import variables as v
|
|||
###############################################################################
|
||||
log = logging.getLogger("PLEX."+__name__)
|
||||
|
||||
HANDLE = int(argv[1])
|
||||
ARGV_0 = argv[0]
|
||||
try:
|
||||
HANDLE = int(argv[1])
|
||||
ARGV_0 = argv[0]
|
||||
except IndexError:
|
||||
pass
|
||||
###############################################################################
|
||||
|
||||
|
||||
|
|
12
service.py
12
service.py
|
@ -183,12 +183,12 @@ class Service():
|
|||
if welcome_msg is True:
|
||||
# Reset authentication warnings
|
||||
welcome_msg = False
|
||||
dialog.notification(
|
||||
lang(29999),
|
||||
"%s %s" % (lang(33000),
|
||||
self.user.currUser),
|
||||
time=2000,
|
||||
sound=False)
|
||||
dialog('notification',
|
||||
lang(29999),
|
||||
"%s %s" % (lang(33000),
|
||||
self.user.currUser),
|
||||
time=2000,
|
||||
sound=False)
|
||||
# Start monitoring kodi events
|
||||
self.kodimonitor_running = KodiMonitor(self)
|
||||
# Start playqueue client
|
||||
|
|
Loading…
Reference in a new issue