Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-02-07 15:31:00 +0100
committerAnton Hvornum <anton@hvornum.se>2021-02-07 15:31:00 +0100
commit1253982c30c5d2454f8e1b285e586a6f48929e3c (patch)
treef23274dd32154ec22d090479e092889528e61e06 /archinstall/lib
parent3dcf8ced6ceed483d1eb6a8212ae5fd79d14ad6c (diff)
Added correct exception handling to the pre-format check.
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/disk.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index c721c90e..8eb4b54d 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -142,8 +142,8 @@ class Partition():
# in order to determain if we support it or not.
try:
self.format(self.filesystem, '/dev/null')
- except DiskError:
- pass # We supported it, but /dev/null is not formatable as expected
+ except SysCallError:
+ pass # We supported it, but /dev/null is not formatable as expected so the mkfs call exited with an error code
except UnknownFilesystemFormat as err:
raise err