Lint: silence S110 on two intentional best-effort swallows in video handlers (pre-existing)
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.
This commit is contained in:
parent
f111b5dda6
commit
1b39e6aa3f
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue