[wifi-radar] wifi-radar get_current_essid()

[ Thread Index | Date Index | More lists.tuxfamily.org/wifi-radar Archives ]


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



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/