Skip to content

Commit

Permalink
fix: add error handling for not existing base dir (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoxys authored Jun 22, 2024
1 parent 41e5ec8 commit 951f439
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ansibledoctor/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def __init__(self):
self._execute()
except ansibledoctor.exception.DoctorError as e:
sysexit_with_message(e)
except FileNotFoundError as e:
sysexit_with_message("Base directory not found", path=e.filename)
except KeyboardInterrupt:
sysexit_with_message("Aborted...")

Expand Down

0 comments on commit 951f439

Please sign in to comment.