pennlabs / penn-sdk-python

A Python module for the various services of Penn OpenData. Validated API token required.
MIT License
30 stars 5 forks source link

Error on Weekly Menu 638 ie Falk Dining #24

Closed adelq closed 9 years ago

adelq commented 9 years ago

normalize_weekly strikes again, the weekly menu is not working because there is not a menu currently for Falk Dining Hall.

File "/home/labs/penn-mobile-server-test/server/api.py", line 38, in retrieve_weekly_menu
menu = din.menu_weekly(venue_id)
File "/home/labs/penn-sdk-python/penn/dining.py", line 88, in menu_weekly
return normalize_weekly(response)
File "/home/labs/penn-sdk-python/penn/dining.py", line 16, in normalize_weekly
if isinstance(data["result_data"]["Document"]["tblMenu"], dict):
KeyError: 'tblMenu'
awiss commented 9 years ago

Fixed by #25