Thanks flake8 for keeping me on my toes!
The return value is a dictionary suitable to be published to the
Slack views_publish API."""
- # Behave cleanly if there is not hunts table at all yet.
+ # Behave cleanly if there is no hunts table at all yet.
try:
response = turb.db.Table("hunts").scan()
hunts = response['Items']
- except:
+ except Exception:
hunts = []
return {
if 'Items' in response:
- hunt_channel_id=response['Items'][0]['channel_id']
+ hunt_channel_id = response['Items'][0]['channel_id']
# Find all members of the hunt channel
members = turbot.slack.slack_channel_members(turb.slack_client,