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 occur. check that your code is in fact getting such a value and that you haven't altered the Query class or SQLAlchemy's source code. -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sqlalchemy/6454a610-0e08-48e4-8fa6-048b7f8ffbdd%40www.fastmail.com.
