Skip to content

Commit dbe248d

Browse files
seratchRodneyU215
authored andcommitted
Improve a code snippet on README (#516)
1 parent 112dd12 commit dbe248d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ In our example below, we watch for a [message event][message-event] that contain
137137
data = payload['data']
138138
web_client = payload['web_client']
139139
rtm_client = payload['rtm_client']
140-
if 'Hello' in data['text']:
140+
if 'Hello' in data.get('text', []):
141141
channel_id = data['channel']
142142
thread_ts = data['ts']
143143
user = data['user']

0 commit comments

Comments
 (0)