Skip to content

Commit

Permalink
Use is None comparison over truth.
Browse files Browse the repository at this point in the history
  • Loading branch information
lamby committed Sep 25, 2015
1 parent 0f9c10b commit 188cf28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_slack/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def render(component):

assert False, "Missing or empty required parameter: %s" % x

if attachments:
if attachments is not None:
data['attachments'] = json.dumps(attachments)

try:
Expand Down

0 comments on commit 188cf28

Please sign in to comment.