except KeyError: print("this was not a key error?")

gert gert.cuykens at gmail.com
Sat Oct 10 19:59:30 EDT 2009


http://code.google.com/p/appwsgi/source/browse/appwsgi/wsgi/order.wsgi

I screwed up some sql statement

INSERT INTO orders (pid,uid,bid,time) VALUES (?,?,2,DATETIME('NOW'))",
(v['pid']),s.UID)

bid does not exist anymore, but why does the KeyError exception occur
when only my sql statement is wrong ?



More information about the Python-list mailing list