diff --git a/django_feedback_govuk/forms.py b/django_feedback_govuk/forms.py index 05688cc..d38d30f 100644 --- a/django_feedback_govuk/forms.py +++ b/django_feedback_govuk/forms.py @@ -36,13 +36,7 @@ def __init__(self, *args, **kwargs): legend_size=Size.MEDIUM, ), Fieldset( - HTML( - ( - "
", - dfg_settings.COPY_FIELD_COMMENT_HINT, - "
", - ) - ), + HTML(f"{dfg_settings.COPY_FIELD_COMMENT_HINT}
"), Field("comment"), legend=dfg_settings.COPY_FIELD_COMMENT_LEGEND, legend_size=Size.MEDIUM, diff --git a/django_feedback_govuk/notify.py b/django_feedback_govuk/notify.py index 40493da..c9c3715 100644 --- a/django_feedback_govuk/notify.py +++ b/django_feedback_govuk/notify.py @@ -12,6 +12,9 @@ def email(personalisation: Dict): ) email_addresses = dfg_settings.FEEDBACK_NOTIFICATION_EMAIL_RECIPIENTS + if len(email_addresses) < 1: + raise Exception("No feedback recipients configured") + for email_address in email_addresses: message_response = notification_client.send_email_notification( email_address=email_address, diff --git a/pyproject.toml b/pyproject.toml index 53311b3..273cc77 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "django-feedback-govuk" -version = "0.1.1" +version = "0.1.2" description = "A Django app to gather and send internal Government staff feedback" authors = ["jafacakes2011