TypeError: sequence item 0: expected str instance, NoneType found
Opened this issue · 1 comments
eduder commented
Running macOS 14.3.1 on ARM, with official Python 3.12.2 installed from python.org
The script starts to run for me, but on the third AP, it errors out with this console text:
Processing AP device: XXXX-XXXX-XXXX...
Processing BSSID: XX:XX:XX:XX:XX:XX...
Traceback (most recent call last):
File "/Users/myusername/Documents/meraki/meraki-bssid-dump/meraki-bssid-dump.py", line 29, in <module>
file.write(f"{','.join(list)}\n")
^^^^^^^^^^^^^^
TypeError: sequence item 0: expected str instance, NoneType found
eduder commented
Upon further investigation, it looks like the device it is getting hung up on has the MAC address (with colons) as the device name, as it hasn't been deployed. We have quite a few of these. If I rename the colons to dashes, it runs fine. Unfortunately we have a lot of devices that will need to be manually renamed to avoid this.