]> git.cworth.org Git - turbot/blobdiff - turbot/events.py
Some simple flake8 fixes
[turbot] / turbot / events.py
index 26c89452667aaec9679f30429300dca3d2d9e1e3..931e9c453b271db34f786a6fd2ca60b9cde52bb9 100644 (file)
@@ -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,