Skip to content

Commit 79949e6

Browse files
author
Shane DeWael
authored
Merge pull request #31 from psykzz/patch-1
Pass an exception to the error emitter
2 parents 6be9e71 + 325e4ba commit 79949e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slackeventsapi/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def event():
6060
# Verify the request token
6161
request_token = event_data.get("token")
6262
if self.verification_token != request_token:
63-
self.emitter.emit('error', 'invalid verification token')
63+
self.emitter.emit('error', Exception('invalid verification token'))
6464
return make_response("Request contains invalid Slack verification token", 403)
6565

6666
# Parse the Event payload and emit the event to the event listener

0 commit comments

Comments
 (0)