mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-15 17:52:26 -05:00
Removed the superfluous variable and pass through as it pulls it
automatically out of sys.exc_info.
This commit is contained in:
@@ -202,9 +202,9 @@ def preview_letter_template_by_notification_id(service_id, notification_id, file
|
||||
|
||||
pdf_file = get_letter_pdf(notification)
|
||||
|
||||
except botocore.exceptions.ClientError as e:
|
||||
except botocore.exceptions.ClientError:
|
||||
current_app.logger.exception(
|
||||
'Error getting letter file from S3 notification id {}'.format(notification_id), e)
|
||||
'Error getting letter file from S3 notification id {}'.format(notification_id))
|
||||
raise InvalidRequest('Error getting letter file from S3 notification id {}'.format(notification_id),
|
||||
status_code=500)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user