fix: add error handling for not existing base dir (#726)

This commit is contained in:
Robert Kaussow 2024-06-22 12:25:23 +02:00 committed by GitHub
parent 41e5ec806b
commit 951f4394da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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...")