summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/sqlalchemy/orm/query.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py
index c1e221845..81be0e63c 100644
--- a/lib/sqlalchemy/orm/query.py
+++ b/lib/sqlalchemy/orm/query.py
@@ -3352,8 +3352,7 @@ class _ColumnEntity(_QueryEntity):
if c is column:
break
_ColumnEntity(query, c, namespace=column)
-
- if c is not column:
+ else:
return
elif isinstance(column, Bundle):
_BundleEntity(query, column)