❯ python main.py --skip 37 file momentos_estelares_de_la_probabilidad_y_estadistica.txt
Traceback (most recent call last):
File "/Users/nando/Projects/personal/typetrain/main.py", line 157, in curses_app
stats = run_paragraph_exercise(win, paragraph)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/nando/Projects/personal/typetrain/main.py", line 141, in run_paragraph_exercise
win.addstr(f'\n\n{render_stats_as_list(stats)}\n')
_curses.error: addwstr() returned ERR
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/nando/Projects/personal/typetrain/main.py", line 204, in <module>
main()
File "/Users/nando/Projects/personal/typetrain/main.py", line 194, in main
aggregate_stats = curses.wrapper(curses_app, selected_plugin, skip=args.skip)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/nando/.pyenv/versions/3.11.8/lib/python3.11/curses/__init__.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/nando/Projects/personal/typetrain/main.py", line 180, in curses_app
return aggregate_stats
^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'aggregate_stats' where it is not associated with a value
momentos_estelares_de_la_probabilidad_y_estadistica.txt