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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.bio.base
Merge requests
!135
Make missing annotations None instead of empty dict
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Make missing annotations None instead of empty dict
annotator
into
master
Overview
0
Commits
3
Pipelines
3
Changes
4
Merged
Make missing annotations None instead of empty dict
Amir MOHAMMADI
requested to merge
annotator
into
master
Mar 9, 2018
Overview
0
Commits
3
Pipelines
3
Changes
4
0
0
Merge request reports
Compare
master
version 2
e1c15480
Mar 9, 2018
version 1
2ec484bb
Mar 9, 2018
master (base)
and
latest version
latest version
97e70380
3 commits,
Mar 10, 2018
version 2
e1c15480
2 commits,
Mar 9, 2018
version 1
2ec484bb
1 commit,
Mar 9, 2018
4 files
+
19
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
bob/bio/base/annotator/FailSafe.py
+
2
−
2
View file @ 97e70380
Edit in single-file editor
Open in Web IDE
Show full file
@@ -34,7 +34,7 @@ class FailSafe(Annotator):
logger
.
debug
(
"
The annotator `%s
'
failed to annotate!
"
,
annotator
,
exc_info
=
True
)
annotations
=
{}
annotations
=
None
if
not
annotations
:
logger
.
debug
(
"
Annotator `%s
'
returned empty annotations.
"
,
annotator
)
@@ -44,5 +44,5 @@ class FailSafe(Annotator):
break
else
:
# this else is for the for loop
# we don't want to return half of the annotations
kwargs
[
'
annotations
'
]
=
{}
kwargs
[
'
annotations
'
]
=
None
return
kwargs
[
'
annotations
'
]
Loading