mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
Actually I decided we don't need an exception log here.
This commit is contained in:
@@ -246,11 +246,10 @@ def _sanitise_precompiled_pdf(self, notification, precompiled_pdf):
|
|||||||
return resp.content
|
return resp.content
|
||||||
except RequestException as ex:
|
except RequestException as ex:
|
||||||
if ex.response is not None and ex.response.status_code == 400:
|
if ex.response is not None and ex.response.status_code == 400:
|
||||||
if notification.service_id != UUID('fe44178f-3b45-4625-9f85-2264a36dd9ec'):
|
current_app.logger.info(
|
||||||
current_app.logger.exception(
|
"sanitise_precompiled_pdf validation error for notification: {}".format(notification.id)
|
||||||
"sanitise_precompiled_pdf validation error for notification: {}".format(notification.id)
|
)
|
||||||
)
|
return None
|
||||||
return None
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
current_app.logger.exception(
|
current_app.logger.exception(
|
||||||
|
|||||||
Reference in New Issue
Block a user