Convert the BeautifulSoup object to a list before iterating

This commit is contained in:
Juhani Krekelä 2018-06-09 14:35:21 +00:00
parent b72544e480
commit fbf0495c82
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ def login_forward(raw_path):
''', 'html.parser')
# TODO: Internationalization
return page_skeleton(page_title = 'Login to ' + config.site_name, contents = contents, soup = soup)
return page_skeleton(page_title = 'Login to ' + config.site_name, contents = list(contents), soup = soup)
def error_404(path):
"""Returns html"""