From 951f4394da1e288836cb4eb21017bb3d7e71e150 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 22 Jun 2024 12:25:23 +0200 Subject: [PATCH] fix: add error handling for not existing base dir (#726) --- ansibledoctor/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansibledoctor/cli.py b/ansibledoctor/cli.py index 88d2c22..a8f345a 100644 --- a/ansibledoctor/cli.py +++ b/ansibledoctor/cli.py @@ -26,6 +26,8 @@ class AnsibleDoctor: 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...")