diff --git a/client.py b/client.py index b1ace8f..923d54b 100644 --- a/client.py +++ b/client.py @@ -266,7 +266,7 @@ class ClientWrapper(object): raise ValueError("Can't broadcast a non-threaded message. Try again.") # Set blocks iff provided. - if blocks: + if blocks is not None: kwargs["blocks"] = blocks return self.api_call(api_method, **kwargs) diff --git a/plugins/periodicals.py b/plugins/periodicals.py index acf8c58..570997c 100644 --- a/plugins/periodicals.py +++ b/plugins/periodicals.py @@ -190,7 +190,7 @@ class TestPassive(hooks.Passive): client.get_slack().edit_message(response, event.conversation.conversation_id, event.message.ts, None) def on_expire(): - client.get_slack().edit_message("Timed out", "#botzone", msg_ts, None) + client.get_slack().edit_message("Timed out", "#botzone", msg_ts, []) # Add a listener listener = hooks.InteractionListener(on_click,