Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorVarun Madiath <vamega@gmail.com>2020-10-19 22:07:34 -0400
committerVarun Madiath <vamega@gmail.com>2020-10-19 23:04:14 -0400
commite4f363ce7dbd6ec27a30123caf262c99452a0dd4 (patch)
treea233dcfccf736a9b9fc7eec840cc405d70436163 /archinstall/lib
parentda59378cc45b1d04e0b26d058d451a9202903d1c (diff)
Fix typo in function parameter
`suppress_errors` was previously spelt `surpress_errors`
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/general.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py
index 2dd3e5ab..d9b0c147 100644
--- a/archinstall/lib/general.py
+++ b/archinstall/lib/general.py
@@ -75,7 +75,7 @@ class sys_command():#Thread):
def __init__(self, cmd, callback=None, start_callback=None, *args, **kwargs):
if not 'worker_id' in kwargs: kwargs['worker_id'] = gen_uid()
if not 'emulate' in kwargs: kwargs['emulate'] = False
- if not 'surpress_errors' in kwargs: kwargs['surpress_errors'] = False
+ if not 'suppress_errors' in kwargs: kwargs['suppress_errors'] = False
if kwargs['emulate']:
log(f"Starting command '{cmd}' in emulation mode.")
self.raw_cmd = cmd
@@ -238,7 +238,7 @@ class sys_command():#Thread):
if 'ignore_errors' in self.kwargs:
self.exit_code = 0
- if self.exit_code != 0 and not self.kwargs['surpress_errors']:
+ if self.exit_code != 0 and not self.kwargs['suppress_errors']:
log(f"'{self.raw_cmd}' did not exit gracefully, exit code {self.exit_code}.")
log(self.trace_log.decode('UTF-8'))
raise SysCallError(f"'{self.raw_cmd}' did not exit gracefully, exit code {self.exit_code}.\n{self.trace_log.decode('UTF-8')}")