diff --git a/bob/bio/base/utils/resources.py b/bob/bio/base/utils/resources.py index 3c3b5749047ed700c8279ea4fefc9a6481959ca4..9a60db4b80c4ff86371dd9c296b993e277c2516f 100644 --- a/bob/bio/base/utils/resources.py +++ b/bob/bio/base/utils/resources.py @@ -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]