Skip to content

Commit

Permalink
fixed 'dict' object has no attribute 'has_key' error
Browse files Browse the repository at this point in the history
  • Loading branch information
Taskle authored and lamby committed Aug 26, 2021
1 parent 10c29d0 commit 57dc044
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 @@ -85,7 +85,7 @@ def slack_message(
for k, v in PARAMS.items():
# First, set from default if we have one (note: we use has_key() in case
# a value is passed in that is not truthy, e.g. unfurl_links = False)
if v.has_key('default'):
if 'default' in v:
data[k] = v['default']

# Render template if necessary
Expand Down

0 comments on commit 57dc044

Please sign in to comment.