mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
ensure emails still accept emoji
This commit is contained in:
@@ -163,11 +163,12 @@ def add_service_template(service_id, template_type):
|
||||
form.process_type.data
|
||||
)
|
||||
except HTTPError as e:
|
||||
if e.status_code == 400:
|
||||
if 'content' in e.message and any(['character count greater than' in x for x in e.message['content']]):
|
||||
form.template_content.errors.extend(e.message['content'])
|
||||
else:
|
||||
raise e
|
||||
if (
|
||||
e.status_code == 400 and
|
||||
'content' in e.message and
|
||||
any(['character count greater than' in x for x in e.message['content']])
|
||||
):
|
||||
form.template_content.errors.extend(e.message['content'])
|
||||
else:
|
||||
raise e
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user