Skip to content

Commit

Permalink
Update globalentry.py
Browse files Browse the repository at this point in the history
  • Loading branch information
GreteLaw committed Dec 6, 2023
1 parent ec5f4c5 commit 68af415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions globalentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def get_password():
return getpass("Enter your email password: ")

def send_email(Location, Date, Time, email, password):
text = "Hello. There is an available radiology appointment at {Date} {Time} at {Location}."
text = ("Hello. There is an available radiology appointment at {Date} {Time} at {Location}.")

msg = EmailMessage()
msg.set_content(text)
Expand All @@ -27,7 +27,7 @@ def send_email(Location, Date, Time, email, password):
server.login(email, password)
server.send_message(msg)
except Exception as e:
print('An error occurred while sending email:')
print('An error occurred while sending email:{e}')

def check_appointment():
csv_path = r'C:\Users\grete\OneDrive - Kennesaw State University\HMI 7540-Hlthcare Info Sys. Fall 2023\mock_appointments.csv'
Expand Down

0 comments on commit 68af415

Please sign in to comment.