misc: pylint fix wrong placeholders & substitutions (#52222)

This commit is contained in:
Lauréline Guérin 2021-03-22 15:18:13 +01:00
parent 3c2ddb1f22
commit 6ac7eb4a43
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 1 additions and 4 deletions

View File

@ -3100,10 +3100,7 @@ class SendSMSWorkflowStatusItem(WorkflowStatusItem):
try:
sms_body = template_on_formdata(formdata, self.compute(self.body, render=False))
except TemplateError as e:
url = formdata.get_url()
get_logger().error(
'error in template for sms [%s], ' 'sms could not be generated' % (url, str(e))
)
get_logger().error('error in template for sms [%s], sms could not be generated' % str(e))
return
from .qommon import sms