index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2022-08-30 23:58:00 +0200 |
---|---|---|
committer | Anton Hvornum <anton@hvornum.se> | 2022-08-30 23:58:00 +0200 |
commit | a335f100fc95377374c47aab5b981e5c1c73aa00 (patch) | |
tree | 707ba8698819505178ca78c2181eda9a3e7d8fda /archinstall/lib/exceptions.py | |
parent | ea407f5c9de2966ee741198e55fcfa8f29760295 (diff) | |
parent | 0f5b91c7d733e94ffcad2fd8dd01774631b0c15a (diff) |
-rw-r--r-- | archinstall/lib/exceptions.py | 8 |
diff --git a/archinstall/lib/exceptions.py b/archinstall/lib/exceptions.py index a16faa3f..a66e4e04 100644 --- a/archinstall/lib/exceptions.py +++ b/archinstall/lib/exceptions.py @@ -1,4 +1,7 @@ -from typing import Optional +from typing import Optional, TYPE_CHECKING + +if TYPE_CHECKING: + from .general import SysCommandWorker class RequirementError(BaseException): pass @@ -17,10 +20,11 @@ class ProfileError(BaseException): class SysCallError(BaseException): - def __init__(self, message :str, exit_code :Optional[int] = None) -> None: + def __init__(self, message :str, exit_code :Optional[int] = None, worker :Optional['SysCommandWorker'] = None) -> None: super(SysCallError, self).__init__(message) self.message = message self.exit_code = exit_code + self.worker = worker class PermissionError(BaseException): |