mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for KeyboardInterrupt
This commit is contained in:
parent
b78c1c6a9a
commit
fcece16859
1 changed files with 2 additions and 2 deletions
|
@ -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. """
|
||||
|
|
Loading…
Add table
Reference in a new issue