[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/FileStorage/FileStorage.py Pass formatted string to exception for more informative tracebacks.

Patrick Strawderman patrick at zope.com
Thu Oct 29 17:06:56 EDT 2009


Log message for revision 105376:
  Pass formatted string to exception for more informative tracebacks.

Changed:
  U   ZODB/trunk/src/ZODB/FileStorage/FileStorage.py

-=-
Modified: ZODB/trunk/src/ZODB/FileStorage/FileStorage.py
===================================================================
--- ZODB/trunk/src/ZODB/FileStorage/FileStorage.py	2009-10-29 20:46:20 UTC (rev 105375)
+++ ZODB/trunk/src/ZODB/FileStorage/FileStorage.py	2009-10-29 21:06:56 UTC (rev 105376)
@@ -51,7 +51,7 @@
 
 def panic(message, *data):
     logger.critical(message, *data)
-    raise CorruptedTransactionError(message)
+    raise CorruptedTransactionError(message % data)
 
 class FileStorageError(POSException.StorageError):
     pass



More information about the Zodb-checkins mailing list