dabo Commit
Revision 4095
Date: 2008-05-23 11:35:25 -0700 (Fri, 23 May 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4095
Changed:
U trunk/dabo/dException.py
Log:
Attempt to correct an error when non-ASCII error messages are returned by the
database server.
Diff:
Modified: trunk/dabo/dException.py
===================================================================
--- trunk/dabo/dException.py 2008-05-23 16:41:17 UTC (rev 4094)
+++ trunk/dabo/dException.py 2008-05-23 18:35:25 UTC (rev 4095)
@@ -70,7 +70,7 @@
class DBQueryException(DatabaseException):
def __init__(self, err, sql):
self.sql = sql
- self.err_desc = str(err)
+ self.err_desc = "%s" % err
def __str__(self):
return self.err_desc + '\nSQL: ' + self.sql
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]