diff --git a/common/djangoapps/student/views/dashboard.py b/common/djangoapps/student/views/dashboard.py
index d8cd1c43e8..38d4ef1fda 100644
--- a/common/djangoapps/student/views/dashboard.py
+++ b/common/djangoapps/student/views/dashboard.py
@@ -664,10 +664,10 @@ def student_dashboard(request):
"Add a recovery email to retain access when single-sign on is not available. "
"Go to {link_start}your Account Settings{link_end}.")
).format(
- link_start = HTML("").format(
+ link_start=HTML("").format(
account_setting_page=reverse('account_settings'),
),
- link_end = HTML("")
+ link_end=HTML("")
)
else:
recovery_email_activation_message = Text(