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.feeds+github@gmail.com>2021-04-14 11:58:51 +0200
committerGitHub <noreply@github.com>2021-04-14 11:58:51 +0200
commitc07d286f57792bf252f75e14603695111ab88f92 (patch)
tree80baef8b239842966fb66594f7ae32dbce08df1c /archinstall/lib
parent91723e7dd99071a731e05bac45d6ea429c912c5e (diff)
Modified return value back to {}
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/user_interaction.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py
index e5c32747..506db618 100644
--- a/archinstall/lib/user_interaction.py
+++ b/archinstall/lib/user_interaction.py
@@ -386,7 +386,9 @@ def select_mirror_regions(mirrors, show_top_mirrors=True):
print(' -- You can skip this step by leaving the option blank --')
selected_mirror = input('Select one of the above regions to download packages from (by number or full name): ')
if len(selected_mirror.strip()) == 0:
- return {"mirror": None}
+ # Returning back empty options which can be both used to
+ # do "if x:" logic as well as do `x.get('mirror', {}).get('sub', None)` chaining
+ return {}
elif selected_mirror.isdigit() and int(selected_mirror) <= len(regions)-1:
# I'm leaving "mirrors" on purpose here.