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>2021-12-02 20:20:31 +0000
committerGitHub <noreply@github.com>2021-12-02 21:20:31 +0100
commitb1b820f4cbf4c6a02a9c4638a1f1887d66dbde9c (patch)
tree0b9fb050f16eeacdf7881c0697158e8244f1e43c /archinstall/lib/exceptions.py
parent908c7b8cc0a804e9522d93fcf0dc71034c53ccdb (diff)
Fixing some mypy complaints (#780)
* Fixed some mypy issues regarding SysCommand* and logging * Fixed imports and undefined variable
Diffstat (limited to 'archinstall/lib/exceptions.py')
-rw-r--r--archinstall/lib/exceptions.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archinstall/lib/exceptions.py b/archinstall/lib/exceptions.py
index 147b239b..aa86124b 100644
--- a/archinstall/lib/exceptions.py
+++ b/archinstall/lib/exceptions.py
@@ -1,3 +1,5 @@
+from typing import Optional
+
class RequirementError(BaseException):
pass
@@ -15,7 +17,7 @@ class ProfileError(BaseException):
class SysCallError(BaseException):
- def __init__(self, message, exit_code):
+ def __init__(self, message :str, exit_code :Optional[int]) -> None:
super(SysCallError, self).__init__(message)
self.message = message
self.exit_code = exit_code