This question has already been given, but in my line there are no extra curly braces that would ruin the formatting, so at the moment I absolutely do not know why the error
Error: KeyError: content
html = """
<table class=\"ui celled compact table\" model=\"{model}\">
{theaders}
<tbody>
{content}
</tbody>
</table>
"""
html = html.format(model=model)
html = html.format(content=data)
html = html.format(theaders=theaders)
source
share