traceback?

This commit is contained in:
Morten Delenk 2016-06-12 18:30:10 +02:00
parent 19f5bf1fc5
commit 5274b1968e

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from htmlgen import * from htmlgen import *
import traceback
import storage import storage
import cgi import cgi
import random import random
@ -23,6 +24,7 @@ try:
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: except:
traceback.print_exc()
pass pass
seed=random.SystemRandom().randint(0,2**24) seed=random.SystemRandom().randint(0,2**24)