Fix IndexError and AttributeError

This commit is contained in:
tomkat83 2017-01-24 20:04:53 +01:00
parent a716f8a2c1
commit 1f0a114d35
2 changed files with 11 additions and 8 deletions

View file

@ -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
###############################################################################

View file

@ -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