use str.format-style placeholder in mail template
Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
parent
cdb0b03ea4
commit
59ded2d591
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue