File "../cpython/Lib/test/tokenizedata/badsyntax_pep3120.py", line 1, in <module>
Traceback (most recent call last):
File "/Users/ericwb/workspace/precli/.tox/py312/bin/precli", line 8, in <module>
sys.exit(main())
^^^^^^
File "/Users/ericwb/workspace/precli/precli/cli/main.py", line 363, in main
plain.render(run)
File "/Users/ericwb/workspace/precli/precli/renderers/plain.py", line 48, in render
code_line = code_lines[1] if len(code_lines) > 1 else code_lines[0]
~~~~~~~~~~^^^
IndexError: list index out of range
Describe the bug The plain output renderer raises a traceback when analyzing a specific file.
To Reproduce Steps to reproduce the behavior:
precli ../cpython/Lib/test/tokenizedata/badsyntax_pep3120.py --plain
Expected behavior n/a
Version
Additional context Add any other context about the problem here.