diff --git a/flask_app/sp_app/routes.py b/flask_app/sp_app/routes.py
index 2da32df..8e2afe9 100644
--- a/flask_app/sp_app/routes.py
+++ b/flask_app/sp_app/routes.py
@@ -472,7 +472,7 @@ def _check_submission():
'message': 'ERROR: an unexpected error has occured when trying to run QC on your submission.
'
'Please ensure that you are uploading a properly formatted datasheet.
'
'If the error persists, please get in contact at: '
- '{{ email_address }}'
+ f"{os.getenv('CONTACT_EMAIL_ADDRESS')}
"
f'The full backend traceback is:
{tb}',
"error_type": "unhandled_error",
"response_type": "datasheet",
@@ -563,7 +563,7 @@ def _check_submission():
'message': 'ERROR: an unexpected error has occured when trying to run QC on your submission.
'
'Please ensure that you are uploading a properly formatted datasheet.
'
'If the error persists, please get in contact at: '
- '{{ email_address }}'
+ f"{os.getenv('CONTACT_EMAIL_ADDRESS')}
"
f'The full backend traceback is:
{tb}',
"error_type": "unhandled_error",
"response_type": "datasheet",