Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip devices with name of NoneType #11

Merged
merged 1 commit into from
Dec 30, 2022
Merged

Conversation

AphLute
Copy link
Contributor

@AphLute AphLute commented Dec 30, 2022

This fixes this error I was getting running the python script on Windows 11. Although I am not certain it is a Windows 11 thing necessarily! (I also had trouble at this same spot running the .exe, but the error from the .exe didn't indicate anything like this.)

>> This seems to be a valid V2 Base Station.

Traceback (most recent call last):
  File "C:\Program Files\LH-Manager\lighthouse-v2-manager.py", line 157, in <module>
    loop.run_until_complete(run(loop, lh_macs))
  File "C:\Users\me\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "C:\Program Files\LH-Manager\lighthouse-v2-manager.py", line 56, in run
    if d.name.find("LHB-") != 0:
       ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'find'

@AphLute AphLute mentioned this pull request Dec 30, 2022
@nouser2013 nouser2013 merged commit 7cfd5dc into nouser2013:master Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants