I also met this problem, the version is:
$ wicd-curses --version -I-
wicd-curses-uimod (using wicd 1.7.2.4)
It's easy to reproduce in a environment with many access points, continue refresh and move the focus to the access point at the bottom each time, when the numbers of access points scanned this time is less than last time, it can't focus on a non-exist access point, crash comes out.
I've view some code and get a solution, change
self.wlessLB.set_focus(self.focusloc[1])
into
self.wlessLB.set_focus(min(self.focusloc[1], len(self.wlessLB.body) -1))
in line 703 of wicd-curses.py, it will focus on last access point when get less access points then last scan.
I also met this problem, the version is:
$ wicd-curses --version -I-
wicd-curses-uimod (using wicd 1.7.2.4)
It's easy to reproduce in a environment with many access points, continue refresh and move the focus to the access point at the bottom each time, when the numbers of access points scanned this time is less than last time, it can't focus on a non-exist access point, crash comes out.
I've view some code and get a solution, change
self. wlessLB. set_focus( self.focusloc[ 1]) wlessLB. set_focus( min(self. focusloc[ 1], len(self. wlessLB. body) -1))
into
self.
in line 703 of wicd-curses.py, it will focus on last access point when get less access points then last scan.