Describe the bug
Traceback when targeting a file that doesn't exist.
To Reproduce
Steps to reproduce the behavior:
Run .tox/py312/bin/precli ../setup.py (Note: ../setup.py file doesn't exist)
See error
Erics-MacBook-Pro-2:precli ericwb$ .tox/py312/bin/precli ../setup.py
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 351, in main
run.invoke()
File "/Users/ericwb/workspace/precli/precli/core/run.py", line 187, in invoke
with open(artifact.file_name, "rb") as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '../setup.py'
Describe the bug Traceback when targeting a file that doesn't exist.
To Reproduce Steps to reproduce the behavior:
.tox/py312/bin/precli ../setup.py
(Note: ../setup.py file doesn't exist)Expected behavior No tracebacks
Version
Additional context Add any other context about the problem here.