Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

AttributeError: 'Cell' object has no attribute 'ssid' #86

Closed
tlau opened this issue Jan 16, 2016 · 5 comments
Closed

AttributeError: 'Cell' object has no attribute 'ssid' #86

tlau opened this issue Jan 16, 2016 · 5 comments

Comments

@tlau
Copy link

tlau commented Jan 16, 2016

When running the wifi command, I intermittently get this error:

% wifi
Traceback (most recent call last):
  File "/usr/local/bin/wifi", line 202, in <module>
    args.func(args)
  File "/usr/local/bin/wifi", line 51, in scan_command
    print_table([[cell.signal, cell.ssid, 'protected' if cell.encrypted else 'unprotected'] for cell in Cell.all(args.interface)])
AttributeError: 'Cell' object has no attribute 'ssid'

I suspect there's a wireless network in my environment which doesn't broadcast SSID, or something, which causes this particular failure.

@rockymeza
Copy link
Owner

Hi!

Thanks for the bug report. Just to confirm, can you send me the output of
iwlist wlan0 scan please?

Thanks!

-rocky

On Sat, Jan 16, 2016 at 10:49 AM, Tessa Lau notifications@github.com
wrote:

When running the wifi command, I intermittently get this error:

% wifi
Traceback (most recent call last):
File "/usr/local/bin/wifi", line 202, in
args.func(args)
File "/usr/local/bin/wifi", line 51, in scan_command
print_table([[cell.signal, cell.ssid, 'protected' if cell.encrypted else 'unprotected'] for cell in Cell.all(args.interface)])
AttributeError: 'Cell' object has no attribute 'ssid'

I suspect there's a wireless network in my environment which doesn't
broadcast SSID, or something, which causes this particular failure.


Reply to this email directly or view it on GitHub
#86.

@tlau
Copy link
Author

tlau commented Jan 16, 2016

Here you go:

wlan0-scan.txt

@rockymeza
Copy link
Owner

Hi, I just merged a fix into master, do you want to try it out?

@rockymeza
Copy link
Owner

@tlau
Copy link
Author

tlau commented Jan 26, 2016

Yep, that fixes it. Thanks!

rockymeza added a commit that referenced this issue Feb 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants