Skip to content

Commit 96dc78b

Browse files
Remove dependency on deprecated uu module (#2719)
The uu module is deprecated and removed in python 3.13 Its use was a bug anyhow. Error is used in typescript and was accidentally used in python. ## Checklist - [/] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [/] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [/] I have not broken the cheatsheet
1 parent 0b9cdc3 commit 96dc78b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cursorless-talon/src/get_grapheme_spoken_form_entries.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import typing
33
from collections import defaultdict
44
from typing import Iterator, Mapping
5-
from uu import Error
65

76
from talon import app, registry, scope
87

@@ -55,7 +54,7 @@ def generate_lists_from_capture(capture_name) -> Iterator[str]:
5554
try:
5655
# NB: [-1] because the last capture is the active one
5756
rule = registry.captures[capture_name][-1].rule.rule
58-
except Error:
57+
except Exception:
5958
app.notify("Error constructing spoken forms for graphemes")
6059
print(f"Error getting rule for capture {capture_name}")
6160
return
@@ -86,7 +85,7 @@ def get_id_to_talon_list(list_name: str) -> dict[str, str]:
8685
try:
8786
# NB: [-1] because the last list is the active one
8887
return typing.cast(dict[str, str], registry.lists[list_name][-1]).copy()
89-
except Error:
88+
except Exception:
9089
app.notify(f"Error getting list {list_name}")
9190
return {}
9291

0 commit comments

Comments
 (0)