From 324cd5473fbe706ac9fb0ba723f688f7eec7215b Mon Sep 17 00:00:00 2001 From: ahtlon Date: Mon, 10 Aug 2026 23:51:06 +0200 Subject: [PATCH] 17 --- .gitea/workflows/pr_check.yml | 2 +- app/controllers/cardManager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/pr_check.yml b/.gitea/workflows/pr_check.yml index e91684a..72ea679 100644 --- a/.gitea/workflows/pr_check.yml +++ b/.gitea/workflows/pr_check.yml @@ -20,7 +20,7 @@ jobs: - name: Do Something With Errors run: | - echo "::error file=./workspace/malobeo/gatekeeper/app/services/scanner.py,line=133::Problem" | prbot + echo "::error title=ruff (B904),file=app/controllers/cardManager.py,line=46,col=9,endLine=46,endColumn=83::app/controllers/cardManager.py:46:9: B904 Within an except clause, raise exceptions with raise ... from err or raise ... from None to distinguish them from errors in exception handling" | prbot - name: Post PR Feedback if: always() diff --git a/app/controllers/cardManager.py b/app/controllers/cardManager.py index 128c739..74ba7f3 100644 --- a/app/controllers/cardManager.py +++ b/app/controllers/cardManager.py @@ -43,7 +43,7 @@ def add_card( is None ) except AssertionError: - raise HTTPException(status.HTTP_409_CONFLICT, detail="Name already used!") + raise HTTPException(status.HTTP_409_CONFLICT, detail="Name already used?") try: assert ( db.exec(