From 1253982c30c5d2454f8e1b285e586a6f48929e3c Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 7 Feb 2021 15:31:00 +0100 Subject: Added correct exception handling to the pre-format check. --- archinstall/lib/disk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archinstall') 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 -- cgit v1.2.3-54-g00ecf