fixing exception
This commit is contained in:
parent
d63de71130
commit
46f5eda284
1 changed files with 2 additions and 2 deletions
4
lg.py
4
lg.py
|
@ -69,10 +69,10 @@ class Remote():
|
|||
|
||||
sock.close()
|
||||
if first_only:
|
||||
raise NoTVFound
|
||||
raise Remote.NoTVFound
|
||||
else:
|
||||
if len(addresses) == 0:
|
||||
raise NoTVFound
|
||||
raise Remote.NoTVFound
|
||||
else:
|
||||
return addresses
|
||||
|
||||
|
|
Loading…
Reference in a new issue