On Wed, Dec 30, 2009 at 9:09 AM, Victor Subervi <victorsube...@gmail.com>wrote:
> >> Anyway, you should definitely use a coding rule checker, like pylint or > pyckeck. It would sometimes point you into the correct direction. For > instance, pylint will tell you that except: pass is often (not always) a > clue for bad design/pattern and issue warnings for it. > > How about this: try: id = form.getfirst('id') sql = 'update %s set ProdID="%s" Quantity="%s" %s where ID="%s";' % (tmpTable, prodid, quantity, sqlUpdateMiddle, id) cursor.execute(sql) db.commit() except: raise How does one get around sql calls that fail? beno
-- http://mail.python.org/mailman/listinfo/python-list