diff --git a/slacker/__init__.py b/slacker/__init__.py index fc0851b..def512e 100644 --- a/slacker/__init__.py +++ b/slacker/__init__.py @@ -302,7 +302,7 @@ def command(self, channel, command, text): def update(self, channel, ts, text, attachments=None, parse=None, link_names=False, as_user=None): # Ensure attachments are json encoded - if attachments and isinstance(attachments, list): + if attachments is not None and isinstance(attachments, list): attachments = json.dumps(attachments) return self.post('chat.update', data={