]> git.cworth.org Git - turbot/commitdiff
Add some debugging of the turbot home app
authorCarl Worth <cworth@cworth.org>
Mon, 15 Nov 2021 23:27:32 +0000 (15:27 -0800)
committerCarl Worth <cworth@cworth.org>
Mon, 15 Nov 2021 23:39:00 +0000 (15:39 -0800)
I'm getting some "channel_not_found" errors that I don't understand,
because I don't think I have any active hunts currently.

turbot/events.py

index eb5bcc46c69a8e8bfa09c275081a6f650e71de69..4186e1891b9c799a6244e00417299f4d248ac7ee 100644 (file)
@@ -43,8 +43,11 @@ def home(turb, user_id):
     my_hunt_blocks = []
     available_hunt_blocks = []
     for hunt in hunts:
+        print("Generating turbot home view for hunt '" + hunt['hunt_id'] + "'")
         if not hunt['active']:
+            print("Never mind, that hunt is not active.")
             continue
+        print("Hunt '" + hunt['hunt_id'] + "' is active, moving forward.")
         if user_id in slack_channel_members(turb.slack_client,
                                             hunt['channel_id']):
             my_hunt_blocks.append(hunt_link_block(turb, hunt))