Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2021-04-14 11:53:31 +0200
committerGitHub <noreply@github.com>2021-04-14 11:53:31 +0200
commit7ae4b170b38b98d71dc9825c11cff2afb8644d21 (patch)
treed35d8bb9d193583388d124f7c51a9789ea570101 /examples
parent7e12a2abc4d713677e40408fdbc048858bc187fa (diff)
Removed excessive import
The exceptions are already exposed in `archinstall.<exception>`. This might change in the future tho.
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 37d15b25..7ba787f4 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -1,4 +1,3 @@
-from archinstall.lib.exceptions import RequirementError
import getpass, time, json, os
import archinstall
from archinstall.lib.hardware import hasUEFI
@@ -28,7 +27,7 @@ def ask_user_questions():
while valid_mirror == False:
try:
archinstall.arguments['mirror-region'] = archinstall.select_mirror_regions(archinstall.list_mirrors())
- except RequirementError as e:
+ except archinstall.RequirementError as e:
archinstall.log(e, fg="yellow")
else:
selected_region = archinstall.arguments['mirror-region']