From b5c862549a7b52c8eb53227db1a97e1a6114c040 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 17 Feb 2021 12:14:43 +0100 Subject: Added more error handling for filesystem selection --- examples/guided.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples/guided.py') diff --git a/examples/guided.py b/examples/guided.py index aca3520b..7798ca08 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -129,6 +129,9 @@ if archinstall.arguments['harddrive'].has_partitions(): while 1: 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: -- cgit v1.2.3-70-g09d2