Fix typo in format string

This commit is contained in:
YuviPanda
2020-09-17 17:24:49 +05:30
parent a7b796fa57
commit 217dffa845

View File

@@ -1264,7 +1264,7 @@ class BaseHandler(RequestHandler):
# so we run it sync here, instead of making a sync version of render_template # so we run it sync here, instead of making a sync version of render_template
try: try:
html = self.render_template('%.html' % status_code, sync=True, **ns) html = self.render_template('%s.html' % status_code, sync=True, **ns)
print(html, flush=True) print(html, flush=True)
except TemplateNotFound: except TemplateNotFound:
self.log.debug("No template for %d", status_code) self.log.debug("No template for %d", status_code)