From 1b39e6aa3f2cf531df7cc309674fc120f5b18a6e Mon Sep 17 00:00:00 2001 From: BoulderBadgeDad Date: Sun, 21 Jun 2026 23:35:05 -0700 Subject: [PATCH] Lint: silence S110 on two intentional best-effort swallows in video handlers (pre-existing) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ruff S110 flagged two try/except/pass in video handlers that predate this work. Both are deliberate (a progress-log failure must not abort pruning; a probe's uncertainty just keeps probing) — extend the existing BLE001 noqa to S110 with the rationale. ruff check . is clean again. --- core/automation/handlers/video_auto_wishlist_airing.py | 2 +- core/automation/handlers/video_scan_library.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/automation/handlers/video_auto_wishlist_airing.py b/core/automation/handlers/video_auto_wishlist_airing.py index db142d2d..bc3a3d6d 100644 --- a/core/automation/handlers/video_auto_wishlist_airing.py +++ b/core/automation/handlers/video_auto_wishlist_airing.py @@ -108,7 +108,7 @@ def prune_ended_show_follows(deps, automation_id=None, *, fetch_follows=None, deps.update_progress( automation_id, log_line="Removed ended show '%s' from the watchlist" % (f.get('title') or tid), log_type='info') - except Exception: # noqa: BLE001 + except Exception: # noqa: BLE001, S110 - a progress-log failure must not abort pruning pass return removed diff --git a/core/automation/handlers/video_scan_library.py b/core/automation/handlers/video_scan_library.py index df2db018..09289ea5 100644 --- a/core/automation/handlers/video_scan_library.py +++ b/core/automation/handlers/video_scan_library.py @@ -253,7 +253,7 @@ def probe_present_libraries(candidates, has_item, sleep, *, grace_seconds: int = if has_item(scope, item): present.add(scope) continue - except Exception: # noqa: BLE001 - uncertainty → keep probing, then scan + except Exception: # noqa: BLE001, S110 - uncertainty → keep probing, then scan pass still.append((scope, item)) pending = still