try:
c = db.cursor()
c.execute("insert or replace into registrations values " +
"(?, ?, datetime('now'))", (user, identity))
print '\t<update>true</update>'
except Exception,inst:
print inst.args
insert create table not working. How do I fetch the exception details?