Skip to content

Commit

Permalink
Catch FileNotFoundError
Browse files Browse the repository at this point in the history
  • Loading branch information
yaph committed Jul 15, 2024
1 parent 3885458 commit 02d2ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charla/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def run(argv: argparse.Namespace) -> None:
user_input = Path(filename).read_text()
session.message = t_prompt_ml if session.multiline else t_prompt
session.completer = None
except Exception as err:
except FileNotFoundError as err:
print(f'Enter name of an existing file.\n{err}\n')
continue

Expand Down

0 comments on commit 02d2ef6

Please sign in to comment.