]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
stopgap, need a general strategy for raising readable exceptions for unicode content
authorJason Kirtland <jek@discorporate.us>
Wed, 15 Aug 2007 22:07:35 +0000 (22:07 +0000)
committerJason Kirtland <jek@discorporate.us>
Wed, 15 Aug 2007 22:07:35 +0000 (22:07 +0000)
lib/sqlalchemy/databases/mysql.py

index 6d6f32eadb1aa0d1b34b2d842de25e5b93facf9d..4cdc7962a458e8319ac49de8bc7b5322e84be910 100644 (file)
@@ -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':