[SQL-CVS] SQLObject/SQLObject SQLObject.py,1.22,1.23
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <ian...@us...> - 2003-04-17 07:22:56
|
Update of /cvsroot/sqlobject/SQLObject/SQLObject In directory sc8-pr-cvs1:/tmp/cvs-serv32338/SQLObject Modified Files: SQLObject.py Log Message: Better error message when object not found Index: SQLObject.py =================================================================== RCS file: /cvsroot/sqlobject/SQLObject/SQLObject/SQLObject.py,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** SQLObject.py 17 Apr 2003 07:15:14 -0000 1.22 --- SQLObject.py 17 Apr 2003 07:22:51 -0000 1.23 *************** *** 654,657 **** --- 654,659 ---- results = self._connection._SO_selectOne(self, [self._SO_columnDict[name].dbName]) self._SO_writeLock.release() + assert results != None, "%s with id %s is not in the database" \ + % (self.__class__.__name__, self.id) return results[0] |