From 7bddebe80687139a5c499f2a983169a0748558c3 Mon Sep 17 00:00:00 2001 From: arthurcai Date: Sat, 20 Sep 2025 14:27:59 +0800 Subject: [PATCH] fix: cq --- .pre-commit-config.yaml | 3 ++- joint_teapot/workers/gitea.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1f6321e..8237763 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: hooks: - id: pyupgrade - repo: https://github.com/hadialqattan/pycln - rev: v2.4.0 + rev: v2.5.0 hooks: - id: pycln args: [-a] @@ -25,6 +25,7 @@ repos: rev: '1.7.5' hooks: - id: bandit + additional_dependencies: ['pbr'] - repo: https://github.com/PyCQA/isort rev: 5.12.0 hooks: diff --git a/joint_teapot/workers/gitea.py b/joint_teapot/workers/gitea.py index 70480ea..70dfb31 100644 --- a/joint_teapot/workers/gitea.py +++ b/joint_teapot/workers/gitea.py @@ -1004,7 +1004,9 @@ class Gitea: ) break except Exception: - pass + logger.warning( + f"Could not determine id of label '{label_name}' in {repo_name}" + ) if lid is None: logger.warning(