Handle wifi failure in panel
This commit is contained in:
parent
967caa9ce7
commit
7b2455cdfd
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ def wifi_update(_):
|
||||||
lines = [line.decode('utf-8') for line in info.splitlines()]
|
lines = [line.decode('utf-8') for line in info.splitlines()]
|
||||||
active = [line[2:] for line in lines if line[0] == '*']
|
active = [line[2:] for line in lines if line[0] == '*']
|
||||||
|
|
||||||
if active:
|
if active and ''.join(active) != 'FAIL':
|
||||||
interface, network = active[0].split('-', 1)
|
interface, network = active[0].split('-', 1)
|
||||||
else:
|
else:
|
||||||
interface, network = 'none', '-'
|
interface, network = 'none', '-'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue