Removed excessive import

The exceptions are already exposed in `archinstall.<exception>`.
This might change in the future tho.
This commit is contained in:
Anton Hvornum 2021-04-14 11:53:31 +02:00 committed by GitHub
parent 7e12a2abc4
commit 7ae4b170b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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']