Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-02-17 12:14:43 +0100
committerAnton Hvornum <anton.feeds@gmail.com>2021-02-17 12:14:43 +0100
commitb5c862549a7b52c8eb53227db1a97e1a6114c040 (patch)
tree94a776dbd2b11e257e281a27736b474c8af9b70b
parent28adc20a30142ed93c2f730f6a653d76211a1399 (diff)
Added more error handling for filesystem selection
-rw-r--r--examples/guided.py3
1 files changed, 3 insertions, 0 deletions
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: