06-10-2024 10:40 AM
Sorry, I am new but am hoping this is the right place to ask this question. I am attempting to write a script to check the device status of Meraki switches and Access Point per site. The following code properly gets a response from the access points but I get a the following error on this line: print (status[0])['status']
TypeError: 'NoneType' object is not subscriptable
Can anyone explain why?
Solved! Go to Solution.
06-10-2024 10:56 AM
What about
print (status[0]['status'])
instead of print (status[0])['status']
06-10-2024 10:56 AM
What about
print (status[0]['status'])
instead of print (status[0])['status']
06-10-2024 02:04 PM
Maybe try something like:
for s in status:
print(s)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide