commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r7981 - trunk/gnue-common/src/datasources


From: reinhard
Subject: [gnue] r7981 - trunk/gnue-common/src/datasources
Date: Wed, 28 Sep 2005 12:35:40 -0500 (CDT)

Author: reinhard
Date: 2005-09-24 01:00:38 -0500 (Sat, 24 Sep 2005)
New Revision: 7981

Modified:
   trunk/gnue-common/src/datasources/Exceptions.py
Log:
Fix for statements without parameters.


Modified: trunk/gnue-common/src/datasources/Exceptions.py
===================================================================
--- trunk/gnue-common/src/datasources/Exceptions.py     2005-09-24 05:50:21 UTC 
(rev 7980)
+++ trunk/gnue-common/src/datasources/Exceptions.py     2005-09-24 06:00:38 UTC 
(rev 7981)
@@ -232,5 +232,6 @@
   def __init__ (self, message, statement, parameters):
     errors.AdminError.__init__ (self, message)
     self.detail = TextUtils.lineWrap (statement, 80)
-    for (key, value) in parameters.items ():
-      self.detail += "\n  %s: %s" % (key, repr (value))
+    if parameters is not None:
+      for (key, value) in parameters.items ():
+        self.detail += "\n  %s: %s" % (key, repr (value))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]