Skip to content

Commit

Permalink
fix: variable naming in send_mails
Browse files Browse the repository at this point in the history
  • Loading branch information
henninge committed Oct 10, 2022
1 parent b633e7b commit b6ccfcc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mail/send_mails.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ def send_message(service, user_id, message):
Returns:
Sent Message.
"""
message = None
response = None
try:
message = (
response = (
service.users().messages().send(userId=user_id, body=message).execute()
)
print(f"Message Id: {message['id']}")
print(f"Message Id: {response['id']}")
except errors.HttpError as error:
print(f"An error occurred: {error}")
return message
return response


def render_body(**kwargs):
Expand Down

0 comments on commit b6ccfcc

Please sign in to comment.