[SQL-CVS] r434 - trunk/SQLObject/sqlobject/mysql
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2004-12-03 10:52:48
|
Author: phd Date: 2004-12-03 10:52:44 +0000 (Fri, 03 Dec 2004) New Revision: 434 Modified: trunk/SQLObject/sqlobject/mysql/mysqlconnection.py Log: 2013 is the SERVER_LOST error. Modified: trunk/SQLObject/sqlobject/mysql/mysqlconnection.py =================================================================== --- trunk/SQLObject/sqlobject/mysql/mysqlconnection.py 2004-12-03 09:25:17 UTC (rev 433) +++ trunk/SQLObject/sqlobject/mysql/mysqlconnection.py 2004-12-03 10:52:44 UTC (rev 434) @@ -34,8 +34,7 @@ try: return cursor.execute(query) except MySQLdb.OperationalError, e: - if e.args[0] == 2013: - # This is a + if e.args[0] == 2013: # SERVER_LOST error if self.debug: self.printDebug(conn, str(e), 'ERROR') else: |