Skip to content

Commit

Permalink
Added a way to handle if no text is recived on MMS
Browse files Browse the repository at this point in the history
  • Loading branch information
lperezmo authored Jul 16, 2024
1 parent 479d198 commit 68e4a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sms-helper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def main(req: func.HttpRequest) -> func.HttpResponse:
# These variables are from the Twilio request.
send_to = req.params["From"]
send_from = req.params["To"]
incoming_message = req.params["Body"].lower().strip()
incoming_message = req.params.get("Body", "").lower().strip()


#--------------------------------------------------------------------------#
Expand Down

0 comments on commit 68e4a2f

Please sign in to comment.