From 9bb4f2f69ad0a03e438ae81471a8de25ef4d4f4c Mon Sep 17 00:00:00 2001 From: Amir MOHAMMADI <amir.mohammadi@idiap.ch> Date: Wed, 24 Jan 2018 15:47:52 +0100 Subject: [PATCH] remove the keyword check --- bob/bio/base/utils/resources.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/bob/bio/base/utils/resources.py b/bob/bio/base/utils/resources.py index 3c3b5749..9a60db4b 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] -- GitLab