From: Jason Kirtland Date: Wed, 15 Aug 2007 22:07:35 +0000 (+0000) Subject: stopgap, need a general strategy for raising readable exceptions for unicode content X-Git-Tag: rel_0_4beta3~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9350ec482732e384179f47c36e17efa214e4529d;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git stopgap, need a general strategy for raising readable exceptions for unicode content --- diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index 6d6f32eadb..4cdc7962a4 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -1887,7 +1887,8 @@ class MySQLSchemaReflector(object): type_, spec = self.constraints(line) if type_ is None: warnings.warn( - RuntimeWarning("Unknown schema content: %s" % line)) + RuntimeWarning("Unknown schema content: %s" % + repr(line))) elif type_ == 'key': keys.append(spec) elif type_ == 'constraint':