]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
and one more
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 31 May 2009 18:21:51 +0000 (18:21 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 31 May 2009 18:21:51 +0000 (18:21 +0000)
lib/sqlalchemy/ext/sqlsoup.py

index b998c0883cc43d6d00c0fbd85b30c93533d13ba5..6eef4657c3031b0f2bfc0c8108e75c28fa4d8d70 100644 (file)
@@ -549,7 +549,7 @@ class SqlSoup:
             table = Table(attr, self._metadata, autoload=True, schema=schema or self.schema)
             if not table.primary_key.columns:
                 # Py3K
-                #raise PKNotFoundError('table %r does not have a primary key defined [columns: %s]' % (attr, ','.join(table.c.keys()))) as ke
+                #raise PKNotFoundError('table %r does not have a primary key defined [columns: %s]' % (attr, ','.join(table.c.keys()))) from ke
                 # Py2K
                 raise PKNotFoundError('table %r does not have a primary key defined [columns: %s]' % (attr, ','.join(table.c.keys())))
                 # end Py2K