Skip to content
Permalink
Browse files

close context earlier

  • Loading branch information...
yangmillstheory committed Dec 9, 2017
1 parent f78ce98 commit d532f649d11a0f782f7422f9fe927682ce402de5
Showing with 3 additions and 3 deletions.
  1. +3 −3 reset/lambda.py
@@ -85,9 +85,9 @@ def _send_csv_email():
with open(LOCAL_CSV_PATH, 'rb') as f:
# yes, read all the bytes into memory; the file is small
attachment = MIMEApplication(f.read())
attachment.add_header(
'Content-Disposition', 'attachment', filename=BUDGET_FILE_NAME)
message.attach(attachment)
attachment.add_header(
'Content-Disposition', 'attachment', filename=BUDGET_FILE_NAME)
message.attach(attachment)
logger.info('Sending CSV file to {}'.format(RESET_RECIPIENTS))
ses.send_raw_email(
Source=message['From'],

0 comments on commit d532f64

Please sign in to comment.
You can’t perform that action at this time.