From f7e44810aee7c646f8cc5fc11d244ff8f739a84f Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 22 Oct 2020 03:36:10 -0700 Subject: [PATCH] Some simple flake8 fixes Thanks flake8 for keeping me on my toes! --- turbot/events.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/turbot/events.py b/turbot/events.py index 26c8945..931e9c4 100644 --- a/turbot/events.py +++ b/turbot/events.py @@ -30,11 +30,11 @@ def home(turb, user_id): 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 { @@ -196,7 +196,7 @@ def puzzle_channel_created(turb, puzzle_channel_name, puzzle_channel_id): 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, -- 2.45.2