Skip to content

Commit

Permalink
fix(cli): Always ensure that input file exists
Browse files Browse the repository at this point in the history
Signed-off-by: yshalsager <[email protected]>
  • Loading branch information
yshalsager committed Mar 7, 2022
1 parent 0dd4dc7 commit 723f569
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wit_transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ def main() -> None:
"-v", "--verbose", action="store_true", help="Print API responses."
)
args = parser.parse_args()
if not args.input.exists():
raise RuntimeError("Input file doesn't exist! Exitting!")
if not args.config.exists():
raise RuntimeError("Config was not found! Exitting!")

Expand Down

0 comments on commit 723f569

Please sign in to comment.