instedd / oasis

UCSD Oasis platform
5 stars 4 forks source link

Fix KeyError crash when world api returns JSON with error #342

Closed alex-wenzel closed 4 years ago

alex-wenzel commented 4 years ago

This address #341 for cases when the world API does return a valid JSON response to indicate an error and doesn't actually contain any data. This section of the code now handles both bad responses or no responses using requests exceptions as well as valid responses that contain error messages.