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
|
||||
###############################################################################
|
||||
|
||||
|
||||
|
|
|
@ -183,7 +183,7 @@ class Service():
|
|||
if welcome_msg is True:
|
||||
# Reset authentication warnings
|
||||
welcome_msg = False
|
||||
dialog.notification(
|
||||
dialog('notification',
|
||||
lang(29999),
|
||||
"%s %s" % (lang(33000),
|
||||
self.user.currUser),
|
||||
|
|
Loading…
Reference in a new issue