Skip to content
Snippets Groups Projects
Commit f41d7127 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

remove the keyword check

parent c952ec2d
No related branches found
No related tags found
No related merge requests found
......@@ -131,9 +131,6 @@ def load_resource(resource, keyword, imports = ['bob.bio.base'], package_prefix=
if os.path.isfile(resource):
return read_config_file([resource], keyword)
if keyword not in valid_keywords:
raise ValueError("The given keyword '%s' is not valid. Please use one of %s!" % (str(keyword), str(valid_keywords)))
# now, we check if the resource is registered as an entry point in the resource files
entry_points = [entry_point for entry_point in _get_entry_points(keyword, package_prefix=package_prefix) if entry_point.name == resource]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment