I think you should swap the order of this line, with aws_lambda body is None so the code will raise the exception inside the if condition. L49 not make any sense in this order because if body is None the code will always raise exception inside the if condition
|
if not isinstance(body, str): |
|
raise BoltError(error_message_raw_body_required_in_http_mode()) |
|
self.raw_body = body if body is not None else "" |
I think you should swap the order of this line, with aws_lambda
bodyisNoneso the code will raise the exception inside the if condition. L49 not make any sense in this order because ifbodyisNonethe code will always raise exception inside the if conditionbolt-python/slack_bolt/request/request.py
Lines 47 to 49 in 31436f7