Enable S112: add logging to try-except-continue

This commit is contained in:
Krzysztof kuhy Rudnicki 2025-11-30 15:14:54 +01:00
parent b828c5de80
commit d0eb820c87
2 changed files with 1 additions and 1 deletions

View File

@ -162,6 +162,7 @@ def fen_and_uci_for_blunders(
try:
move = board.parse_san(main_sans[bl.ply - 1])
except Exception:
logging.debug("Skipping blunder: failed to parse fallback move")
continue
else:
continue

View File

@ -64,7 +64,6 @@ ignore = [
"S311", # suspicious-non-cryptographic-random - not security critical
"S310", # suspicious-url-open - acceptable for scripts
"S110", # try-except-pass - common pattern in scripts
"S112", # try-except-continue - acceptable pattern
"DTZ005", # datetime.now without tz - acceptable for local scripts
"PERF401", # manual-list-comprehension - style preference
"RUF005", # collection-literal-concatenation - style preference