Remove new year error
This commit is contained in:
parent
70c9cba2bf
commit
17b1ece7c1
1 changed files with 10 additions and 7 deletions
|
@ -745,6 +745,7 @@ def yeargen(local=False):
|
|||
filewrite.write("\">« " + str(prevyear) + "</a></span>")
|
||||
thisyear = int(datetime.datetime.now().strftime("%Y"))
|
||||
if year < thisyear:
|
||||
try:
|
||||
nextyear = yearlist[listposition + 1]
|
||||
filewrite.write("<span style=\"float:right;\"><a href=\"")
|
||||
if local:
|
||||
|
@ -752,6 +753,8 @@ def yeargen(local=False):
|
|||
else:
|
||||
filewrite.write("/fic/stats/" + str(nextyear))
|
||||
filewrite.write("\">" + str(nextyear) + " »</a></span>")
|
||||
except:
|
||||
pass
|
||||
filewrite.write("</p>\n</div>\n</body>\n</html>")
|
||||
filewrite.close()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue