Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit e562d56

Browse files
fix: remove unnecessar 'from e' in get_products()
1 parent 690e44f commit e562d56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stapi_fastapi/routers/root_router.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ def get_products(
149149
try:
150150
if next:
151151
start = product_ids.index(next)
152-
except ValueError as e:
152+
except ValueError:
153153
logging.exception("An error occurred while retrieving orders")
154-
raise NotFoundException(detail="Error finding pagination token") from e
154+
raise NotFoundException(detail="Error finding pagination token") from None
155155

156156
ids = product_ids[start:end]
157157
links = [

0 commit comments

Comments
 (0)