This commit is contained in:
Morten Delenk 2016-06-12 18:35:51 +02:00
parent 57c3cdf603
commit 795171980c

View file

@ -19,11 +19,15 @@ try:
print("Captcha's wrong") print("Captcha's wrong")
raise SyntaxError() raise SyntaxError()
username=form["username"].value username=form["username"].value
message=form["message"].value try:
message=form["message"].value
except:
raise SyntaxError()
timestamp=int(time.time()) timestamp=int(time.time())
data={"name":"","markdown":message,"author":username,"date":timestamp} data={"name":"","markdown":message,"author":username,"date":timestamp}
storage.append("comments-%i"%aid,data) storage.append("comments-%i"%aid,data)
except KeyError: except KeyError:
pass pass