Convert the BeautifulSoup object to a list before iterating
This commit is contained in:
parent
b72544e480
commit
fbf0495c82
|
@ -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"""
|
||||
|
|
Loading…
Reference in New Issue