Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > SVN: r760 - branches/current/1.6.0/src/db

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

current
Discussion topic

Back to topic list

SVN: r760 - branches/current/1.6.0/src/db

Reply

Author jjneely at EOS dot NCSU dot EDU
Full name jjneely at EOS dot NCSU dot EDU
Date 2005-07-19 20:00:54 PDT
Message Author: jjneely at EOS dot NCSU dot EDU
Date: 2005-07-19 23:00:50 -0400 (Tue, 19 Jul 2005)
New Revision: 760

Modified:
   branches/current/1.6​.0/src/db/currentdb.​py
Log:
Bug #32. If a traceback happens during rollback don't blow up, but log a
real nasty error message and try to continue functioning.


Modified: branches/current/1.6​.0/src/db/currentdb.​py
====================​====================​====================​=======
--- branches/current/1.6​.0/src/db/currentdb.​py 2005-07-20 02:54:59 UTC (rev 759)
+++ branches/current/1.6​.0/src/db/currentdb.​py 2005-07-20 03:00:50 UTC (rev 760)
@@ -75,7 +75,12 @@
            we need to be able to abore the transaction."""
         
         log("Database transaction aborted!", VERBOSE)
- self.conn.rollback()
+ try:
+ self.conn.rollback()
+ except Exception, e:
+ log("Database Corruption! Cannot rollback database!",
+ MANDATORY)
+ log("Database said: %s" % str(e), MANDATORY)
 
 
     def makeChannel(self, channel):

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

SVN: r760 - branches/current/1.6.0/src/db jjneely at EOS dot NCSU dot EDU jjneely at EOS dot NCSU dot EDU 2005-07-19 20:00:54 PDT
Messages per page: