Updated for KeyboardInterrupt

This commit is contained in:
Dimitris Zlatanidis 2023-04-26 09:28:56 +03:00
parent b78c1c6a9a
commit fcece16859

View file

@ -147,8 +147,8 @@ class Utilities(Configs):
subprocess.call(command, shell=True, stderr=stderr, stdout=stdout)
except subprocess.CalledProcessError as error:
self.errors.raise_error_message(str(error), exit_status=20)
except KeyboardInterrupt as error:
self.errors.raise_error_message(str(error), exit_status=1)
except KeyboardInterrupt:
raise SystemExit(1)
def get_file_size(self, file: Path) -> str:
""" Get the local file size and converted to units. """