Skip to content

Commit

Permalink
Debugging auth errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidEBest committed May 22, 2024
1 parent c155053 commit 663427e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dhrn-functions/packages/dhrn/sendmail/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ def main(args):
client.send(mail)
except mt.exceptions.AuthorizationError as e:
# Handle the authorization error here
return {"error": "Mailtrap authorization error {MAILTRAP_API_TOKEN}"}
return {"error": f"Mailtrap authorization error {MAILTRAP_API_TOKEN}", "body": args}

return {"body": args}

0 comments on commit 663427e

Please sign in to comment.