From 9350ec482732e384179f47c36e17efa214e4529d Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Wed, 15 Aug 2007 22:07:35 +0000 Subject: stopgap, need a general strategy for raising readable exceptions for unicode content --- lib/sqlalchemy/databases/mysql.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/databases/mysql.py') diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index 6d6f32ead..4cdc7962a 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': -- cgit v1.2.1