mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-09-28 10:18:17 +00:00
fix: add error handling for not existing base dir (#726)
This commit is contained in:
parent
41e5ec806b
commit
951f4394da
@ -26,6 +26,8 @@ class AnsibleDoctor:
|
|||||||
self._execute()
|
self._execute()
|
||||||
except ansibledoctor.exception.DoctorError as e:
|
except ansibledoctor.exception.DoctorError as e:
|
||||||
sysexit_with_message(e)
|
sysexit_with_message(e)
|
||||||
|
except FileNotFoundError as e:
|
||||||
|
sysexit_with_message("Base directory not found", path=e.filename)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
sysexit_with_message("Aborted...")
|
sysexit_with_message("Aborted...")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user