This commit is contained in:
2026-01-31 19:57:09 -08:00
parent 6513a3ad04
commit 1dbaabac73
7 changed files with 125 additions and 88 deletions

View File

@@ -8,6 +8,7 @@ from __future__ import annotations
import re
from typing import Any, Callable, Dict, List, Optional, Set, Tuple
from SYS.logger import debug
# Prompt-toolkit lexer types are optional at import time; fall back to lightweight
# stubs if prompt_toolkit is not available so imports remain safe for testing.
@@ -130,8 +131,8 @@ class SelectionFilterSyntax:
try:
if SelectionSyntax.parse(str(token)) is not None:
return None
except Exception:
pass
except Exception as exc:
debug("SelectionSyntax.parse failed during filter detection: %s", exc, exc_info=True)
raw = str(token)[1:].strip()
if not raw:
@@ -211,8 +212,8 @@ class SelectionFilterSyntax:
for k in ("title", "path", "detail", "provider", "store", "table"):
try:
_set(k, getattr(item, k, None))
except Exception:
pass
except Exception as exc:
debug("SelectionFilterSyntax: failed to _set attribute %s on item: %s", k, exc, exc_info=True)
return out