Fixed a type-o

This commit is contained in:
Anton Hvornum 2020-09-30 09:14:17 +00:00
parent 85fd06fa8a
commit fad2c36cd2
1 changed files with 2 additions and 1 deletions

View File

@ -52,10 +52,11 @@ def select_profile(options):
# Some crude safety checks, make sure the imported profile has
# a __name__ check and if so, check if it's got a _prep_function()
# we can call to ask for more user input.
if '__name__' in source_data and '_prep_function' in source_data
if '__name__' in source_data and '_prep_function' in source_data:
with profile.load_instructions() as imported:
if hasattr(imported, '_prep_function'):
return profile, imported
return selected_profile
raise RequirementError("Selecting profiles require a least one profile to be given as an option.")