From 3a8a25982a273081cd845723a2d794438e960a13 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 17 Feb 2021 12:15:48 +0100 Subject: Forgot relative path for exceptions. --- examples/guided.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/guided.py b/examples/guided.py index 7798ca08..0efc438c 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -131,14 +131,14 @@ if archinstall.arguments['harddrive'].has_partitions(): new_filesystem = input(f"Enter a valid filesystem for {partition} (leave blank for {partition.filesystem}): ").strip(' ') if len(new_filesystem) <= 0: break - + try: partition.format(new_filesystem, path='/dev/null', log_formating=False, allow_formatting=True) - except UnknownFilesystemFormat: + except archinstall.UnknownFilesystemFormat: archinstall.log(f"Selected filesystem is not supported yet, if you wish archinstall should support '{new_filesystem}' please create a issue-ticket suggesting it on github at https://github.com/Torxed/archinstall/issues.") archinstall.log(f"Until then, please enter another supported filesystem.") continue - except SysCallError: + except archinstall.SysCallError: pass # Supported, but mkfs could not format /dev/null which is the whole point of /dev/null in path :) break -- cgit v1.2.3-70-g09d2