Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All strokes starting with # and ending with the LTZ cause an error #9

Open
NSGauge opened this issue Sep 19, 2024 · 0 comments · May be fixed by #10
Open

All strokes starting with # and ending with the LTZ cause an error #9

NSGauge opened this issue Sep 19, 2024 · 0 comments · May be fixed by #10

Comments

@NSGauge
Copy link

NSGauge commented Sep 19, 2024

Stroking any stroke starting with # and ending with the LTZ causes the following error:

2024-09-19 10:42:45,976 [Dummy-1] ERROR: engine on_stroked failed
Traceback (most recent call last):
  File "build/windist/data\Lib\site-packages\plover\engine.py", line 147, in run
  File "build/windist/data\Lib\site-packages\plover\engine.py", line 383, in _on_stroked
  File "build/windist/data\Lib\site-packages\plover\translation.py", line 204, in translate
  File "build/windist/data\Lib\site-packages\plover\translation.py", line 296, in translate_stroke
  File "build/windist/data\Lib\site-packages\plover\translation.py", line 455, in _lookup_with_prefix
  File "build/windist/data\Lib\site-packages\plover\translation.py", line 405, in _lookup_with_suffix
  File "build/windist/data\Lib\site-packages\plover\translation.py", line 391, in _lookup_strokes
  File "build/windist/data\Lib\site-packages\plover\steno_dictionary.py", line 226, in lookup
  File "build/windist/data\Lib\site-packages\plover\steno_dictionary.py", line 192, in _lookup
  File "C:\Users\user\AppData\Local\plover\plover\plugins\win\Python39\site-packages\plover_python_dictionary.py", line 56, in get
    return self._lookup(key)
  File "<string>", line 145, in lookup
AttributeError: 'NoneType' object has no attribute 'groups'

Specifically in:

Traceback (most recent call last):
  File "C:\Users\user\PycharmProjects\steno\emily-modifiers.py", line 211, in <module>
    print(lookup(('#LTZ',)))
          ^^^^^^^^^^^^^^^^^
  File "C:\Users\user\PycharmProjects\steno\emily-modifiers.py", line 144, in lookup
    (shape, number, vowel2) = secondMatch.groups()
                              ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'groups'

The error occurs on either line 117 or 144 depending on if * is included.

@NSGauge NSGauge linked a pull request Sep 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant