Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/exceptions.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2022-08-30 22:59:23 +0200
committerGitHub <noreply@github.com>2022-08-30 22:59:23 +0200
commit0f5b91c7d733e94ffcad2fd8dd01774631b0c15a (patch)
tree14fec787d01686d29d31affc67d39588d20aec07 /archinstall/lib/exceptions.py
parentf6e695871cdf55dd5277a955ff63a1ee1fd14348 (diff)
Fixing issue where blkid causes SysCallException (#1445)
* Moving a partprobe() call to better allow for cache updates * Trying to improve Partition()._fetch_information() * Removed a sleep() for debugging purposes * Tweaked a sleep
Diffstat (limited to 'archinstall/lib/exceptions.py')
-rw-r--r--archinstall/lib/exceptions.py8
1 files changed, 6 insertions, 2 deletions
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):