Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.bio.base
Commits
29472d23
Commit
29472d23
authored
7 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Patches
Plain Diff
use a warning instead of an error
parent
9bb4f2f6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!131
Add annotator support
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/base/utils/resources.py
+3
-0
3 additions, 0 deletions
bob/bio/base/utils/resources.py
with
3 additions
and
0 deletions
bob/bio/base/utils/resources.py
+
3
−
0
View file @
29472d23
...
...
@@ -131,6 +131,9 @@ 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
:
logger
.
warning
(
"
The given keyword
'
%s
'
is not valid. Please use one of %s!
"
,
keyword
,
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
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment