Update for CalledProcessError * logger

This commit is contained in:
Dimitris Zlatanidis 2023-12-01 13:00:27 +02:00
parent 0d97f21cec
commit 40ae665272

View file

@ -164,10 +164,10 @@ class Utilities(Configs):
except subprocess.CalledProcessError as error:
logger = logging.getLogger(LoggingConfig.date_time)
logger.exception(
f'{self.__class__.__name__}'
f'{self.__class__.process.__name__}'
f'{self.__class__.__name__}: '
f'{self.__class__.process.__name__}: '
f'{error}'
)
self.errors.raise_error_message(str(error), exit_status=20)
except KeyboardInterrupt:
raise SystemExit(1)