Skip to content

Commit e776aad

Browse files
Pre-commit Changes
1 parent c34bb27 commit e776aad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/strawberry_sqlalchemy_mapper/mapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ async def resolve(self, info: Info):
407407
[
408408
v.value
409409
for v in instance_state.attrs.values()
410-
if local in v.columns
410+
if local in getattr(v, "columns", [])
411411
][0]
412412
for local, _ in relationship.local_remote_pairs
413413
]

0 commit comments

Comments
 (0)