Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions cursorless-talon/src/get_grapheme_spoken_form_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import typing
from collections import defaultdict
from typing import Iterator, Mapping
from uu import Error

from talon import app, registry, scope

Expand Down Expand Up @@ -55,7 +54,7 @@ def generate_lists_from_capture(capture_name) -> Iterator[str]:
try:
# NB: [-1] because the last capture is the active one
rule = registry.captures[capture_name][-1].rule.rule
except Error:
except Exception:
app.notify("Error constructing spoken forms for graphemes")
print(f"Error getting rule for capture {capture_name}")
return
Expand Down Expand Up @@ -86,7 +85,7 @@ def get_id_to_talon_list(list_name: str) -> dict[str, str]:
try:
# NB: [-1] because the last list is the active one
return typing.cast(dict[str, str], registry.lists[list_name][-1]).copy()
except Error:
except Exception:
app.notify(f"Error getting list {list_name}")
return {}

Expand Down
Loading