Skip to content

Commit 95b84cb

Browse files
committed
fix: "not in" is more pythonic
1 parent 346d215 commit 95b84cb

File tree

1 file changed

+1
-1
lines changed
  • src/rasenmaeher_api/web/api/product

1 file changed

+1
-1
lines changed

src/rasenmaeher_api/web/api/product/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ async def add_interop(
159159
if "products" not in manifest:
160160
LOGGER.error("Manifest does not have products key")
161161
raise HTTPException(status_code=500, detail="Manifest does not have products key")
162-
if not tgtproduct in manifest["products"]:
162+
if tgtproduct not in manifest["products"]:
163163
raise HTTPException(status_code=404, detail=f"Unknown product {tgtproduct}")
164164
resp = await post_to_product(tgtproduct, "/api/v1/interop/add", srcproduct.dict(), OperationResultResponse)
165165
if resp is None:

0 commit comments

Comments
 (0)