We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c54384b commit f69f048Copy full SHA for f69f048
tests/fixtures_server.py
@@ -308,7 +308,10 @@ async def __aenter__(self):
308
# on them from other sessions
309
db.expunge(self.user)
310
else:
311
- if "profile_id" not in self.user_kwargs.keys():
+ if (
312
+ self.user_kwargs is not None
313
+ and "profile_id" not in self.user_kwargs.keys()
314
+ ):
315
res = await db.execute(select(Profile))
316
profile = res.scalars().one_or_none()
317
if profile is None:
0 commit comments