xme / toolbox

Miscelaneous useful scripts for my day to day projects
125 stars 45 forks source link

If obj['results']: - Error when using script #3

Closed remrem29 closed 6 years ago

remrem29 commented 7 years ago

Hi - Tried out your script as described in the article "How was your stay at the Hotel La Playa?" but the scripts will fail with an error:

File "wigle.py", line 29 in If obj['results']: KeyError: 'results'

So could this be the result if the retur lookup is "null" or "Nothing" - How will the script handle a lookup that isn't listed on Wigle.net?

/TONI