From 19f971580f79086ad491816409c1d2321efb8941 Mon Sep 17 00:00:00 2001 From: Pedro Crespo <32402063+pcrespov@users.noreply.github.com> Date: Wed, 13 Sep 2023 09:18:06 +0200 Subject: [PATCH] @sanderegg review: minor --- .../web/server/src/simcore_service_webserver/products/_db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/server/src/simcore_service_webserver/products/_db.py b/services/web/server/src/simcore_service_webserver/products/_db.py index acf3e3444bd..43dc20d86bf 100644 --- a/services/web/server/src/simcore_service_webserver/products/_db.py +++ b/services/web/server/src/simcore_service_webserver/products/_db.py @@ -26,8 +26,8 @@ async def iter_products(conn: SAConnection) -> AsyncIterator[ResultProxy]: async for row in conn.execute( sa.select(*_COLUMNS_IN_MODEL).order_by(products.c.priority) ): - if row is not None: - yield row + assert row # nosec + yield row class ProductRepository(BaseRepository):