francoisverges / semfio-ekahau

Scripts created to manipulate Ekahau project files in order to ease analysis and reporting
18 stars 3 forks source link

Update tag-antenna.py #2

Closed benea11 closed 2 years ago

benea11 commented 3 years ago

Found a scenario where there are entries in the simulated radio JSON which are have status: DELETED, but nothing else. breaks the script. Just add a if radio['status'] != 'DELETED': " line after the for loop for simulated radios.

Here's a sample JSON https://pastebin.com/hUNggjAL

(applies to this as well (maybe your others?): https://github.com/francoisverges/semfio-ekahau/blob/master/tag-antenna/tag-antenna.py)