use str.format-style placeholder in mail template

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2019-11-19 16:34:11 +01:00
parent cdb0b03ea4
commit 59ded2d591
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ tmpl_admin_email = """
The following errors were encountered while updating bugzilla with information
from the Package Database. Please have the problems taken care of:
%s
{errors}
"""
# User email for invalid setup

View file

@ -689,7 +689,7 @@ def main():
env['email_from'],
env['notify_emails'],
'Errors while syncing bugzilla with the PackageDB',
env['tmpl_admin_email'] % ('\n'.join(errors),))
env['tmpl_admin_email'].format(errors='\n'.join(errors))
)
else:
with open(env['data_cache'], 'w') as stream: