No?
This commit is contained in:
parent
57c3cdf603
commit
795171980c
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue