The return value is a dictionary suitable to be published to the
Slack views_publish API."""
- response = turb.db.Table("hunts").scan()
- hunts = response['Items']
+ # Behave cleanly if there is not hunts table at all yet.
+ try:
+ response = turb.db.Table("hunts").scan()
+ hunts = response['Items']
+ except:
+ hunts = []
return {
"type": "home",