Skip to content

Commit

Permalink
Improve a code snippet on README (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch authored and RodneyU215 committed Sep 25, 2019
1 parent 112dd12 commit dbe248d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ In our example below, we watch for a [message event][message-event] that contain
data = payload['data']
web_client = payload['web_client']
rtm_client = payload['rtm_client']
if 'Hello' in data['text']:
if 'Hello' in data.get('text', []):
channel_id = data['channel']
thread_ts = data['ts']
user = data['user']
Expand Down

0 comments on commit dbe248d

Please sign in to comment.