mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Fix sending emails with no logo
Code was not expecting logo to be `None`, thereby causing the task to throw an exception, and retry until eventually putting the email in technical error (for services with org branding but no logo).
This commit is contained in:
@@ -179,10 +179,11 @@ def get_html_email_options(service):
|
||||
govuk_banner = service.branding not in (BRANDING_ORG, BRANDING_ORG_BANNER)
|
||||
brand_banner = service.branding == BRANDING_ORG_BANNER
|
||||
if service.organisation and service.branding != BRANDING_GOVUK:
|
||||
|
||||
logo_url = get_logo_url(
|
||||
current_app.config['ADMIN_BASE_URL'],
|
||||
service.organisation.logo
|
||||
)
|
||||
) if service.organisation.logo else None
|
||||
|
||||
branding = {
|
||||
'brand_colour': service.organisation.colour,
|
||||
|
||||
Reference in New Issue
Block a user