Refresh angepasst

This commit is contained in:
phil 2016-04-26 22:38:50 +00:00
parent ca02abf1d3
commit b4b1560dd2
2 changed files with 2 additions and 3 deletions

View file

@ -67,10 +67,9 @@ def get_link(index):
def update_static_html():
entries = list(Entry.select().orderBy("-timestamp"))
sidebar = Sidebar.select()[0]
try:
sidebar_text = Sidebar.select()[0].sidebar
except (AttriubuteError, IndexError) as exc:
except (AttributeError, IndexError) as exc:
sidebar_text = ""
file_index = 1
remaining_entries = entries