mysql - Python - peewee - Debugging statements - where are the errors logged -
i have started use peewee in python. saving table data using .save() function. there error in line. , control not go next line.
just wanted know how can know error is. although have narrowed down line below
try: database.transaction(): driver = driver() driver.person = person driver.qualification = form.getvalue('qualification') driver.number = form.getvalue('phone') driver.license = form.getvalue('issu') driver.audited_by = 0 print "this line prints" driver.save() print "this 1 not print" print "success" except: print "error"
i have used print statements able figure out error in in line driver.save(). how check error?
this specified in peewee
documentation here.
Comments
Post a Comment