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__) log = logging.getLogger("PLEX."+__name__)
try:
HANDLE = int(argv[1]) HANDLE = int(argv[1])
ARGV_0 = argv[0] ARGV_0 = argv[0]
except IndexError:
pass
############################################################################### ###############################################################################

View file

@ -183,7 +183,7 @@ 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),