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__)
|
log = logging.getLogger("PLEX."+__name__)
|
||||||
|
|
||||||
HANDLE = int(argv[1])
|
try:
|
||||||
ARGV_0 = argv[0]
|
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:
|
if welcome_msg is True:
|
||||||
# Reset authentication warnings
|
# Reset authentication warnings
|
||||||
welcome_msg = False
|
welcome_msg = False
|
||||||
dialog.notification(
|
dialog('notification',
|
||||||
lang(29999),
|
lang(29999),
|
||||||
"%s %s" % (lang(33000),
|
"%s %s" % (lang(33000),
|
||||||
self.user.currUser),
|
self.user.currUser),
|
||||||
time=2000,
|
time=2000,
|
||||||
sound=False)
|
sound=False)
|
||||||
# Start monitoring kodi events
|
# Start monitoring kodi events
|
||||||
self.kodimonitor_running = KodiMonitor(self)
|
self.kodimonitor_running = KodiMonitor(self)
|
||||||
# Start playqueue client
|
# Start playqueue client
|
||||||
|
|
Loading…
Reference in a new issue