On Wed, Jun 1, 2022, at 4:27 PM, Alexei Kositsin wrote:
> From alchemy docs I should get None if search is empty,
> https://docs.sqlalchemy.org/en/14/orm/query.html#sqlalchemy.orm.query.Query.one_or_none
>
> But getting Nonetype instead (a class), why so?
no known reason for such a thing to
>From alchemy docs I should get None if search is empty,
https://docs.sqlalchemy.org/en/14/orm/query.html#sqlalchemy.orm.query.Query.one_or_none
But getting Nonetype instead (a class), why so?
They are not the same, so the check is not the same, should check
type(MyRes) == type(None) instead of