[wifi-radar] wifi-radar get_current_essid() |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/wifi-radar Archives
]
- To: wifi-radar@xxxxxxxxxxxxxxxxxxx
- Subject: [wifi-radar] wifi-radar get_current_essid()
- From: Steven Carmichael <blekenbleu@xxxxxxxxx>
- Date: Sun, 5 Oct 2014 14:53:59 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=w4zA2qeBZ3ECG507UNpaybbVm3Gpz4x9f5VXyAv7tKI=; b=BUjwiGqzBdaNAslJqy7DE9ULdcDrScW5yJXxWxxhP2DmKcSVA2EAm1Oj0x94cPTo9E O/uMrNTr41m7MDTY+UtNODJyStOWq8Rqy+SxUyM74JQPyNczT7p8RZirIZsFlRPpsUIe LcYe9VpsR52Fr3vkn8PT4jwKeLZJ1N+/F0CQEDY4YOrRoxxDA++6dUM79QMDGib8OBsv tchoj9LzsbFfy+8K5lw5PMFPDdtKoafS6KqyR85al2bxm5hj0afbVGIyxJ+j27V4PAff IhyJs8iAu7fYt7bCVhpW9QaZX60RQJJAcT9X8mEKC4w2T3rEb5L6NnJf4u0H4bjSg51m GQnA==
First, thanks for making wifi-radar available.
Lubuntu 14.04.1 Software Center installed 2.0.s08 on an old laptop
with poorly supported 802.11b.
This soon fails:
$ sudo -H -S -p GNOME_SUDO_PASS -u root -- /usr/sbin/wifi-radar
wlan0 Failed to read scan data : Network is down
Traceback (most recent call last):
File "/usr/sbin/wifi-radar", line 1131, in update_window
self.update_network_info()
File "/usr/sbin/wifi-radar", line 1007, in update_network_info
self.current_network.set_text( "Connected to %s\nIP Address %s" %
(make_section_name(self.connection.get_current_essid(),
self.connection.get_current_bssid()),
self.connection.get_current_ip()))
File "/usr/sbin/wifi-radar", line 142, in make_section_name
return essid + ':' + bssid
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
--==--
I have no previous Python experience;
the follow change works for both 2.0.s08 and 2.0.s09
723c723
< return None
---
> return "None"
I suppose that it might be better for make_section_name() to test for None
--
Steven Carmichael