Actually I decided we don't need an exception log here.

This commit is contained in:
Rebecca Law
2018-10-18 16:46:04 +01:00
parent 38c29d41a4
commit 02154f5fc0
+1 -2
View File
@@ -246,8 +246,7 @@ 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