Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
force-bdss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Adham Hashibon
force-bdss
Commits
f4bfb4fa
Commit
f4bfb4fa
authored
6 years ago
by
Stefano Borini
Browse files
Options
Downloads
Patches
Plain Diff
Restored KeyError with just the id.
parent
f5595f33
No related branches found
No related tags found
1 merge request
!137
Communicative workflow reader
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
force_bdss/factory_registry_plugin.py
+4
-8
4 additions, 8 deletions
force_bdss/factory_registry_plugin.py
with
4 additions
and
8 deletions
force_bdss/factory_registry_plugin.py
+
4
−
8
View file @
f4bfb4fa
...
...
@@ -88,8 +88,7 @@ class FactoryRegistryPlugin(Plugin):
if
ds
.
id
==
id
:
return
ds
raise
KeyError
(
"
Unable to find data source factory with id {}
"
"
in the registry
"
.
format
(
id
))
raise
KeyError
(
id
)
def
mco_factory_by_id
(
self
,
id
):
"""
Finds a given Multi Criteria Optimizer (MCO) factory by means of
...
...
@@ -109,8 +108,7 @@ class FactoryRegistryPlugin(Plugin):
if
mco
.
id
==
id
:
return
mco
raise
KeyError
(
"
Unable to find mco factory
"
"
with id {} in the registry.
"
.
format
(
id
))
raise
KeyError
(
id
)
def
mco_parameter_factory_by_id
(
self
,
mco_id
,
parameter_id
):
"""
Retrieves the MCO parameter factory for a given MCO id and
...
...
@@ -138,8 +136,7 @@ class FactoryRegistryPlugin(Plugin):
if
factory
.
id
==
parameter_id
:
return
factory
raise
KeyError
(
"
Unable to find parameter factory with id {}
"
"
in the registry.
"
.
format
(
parameter_id
))
raise
KeyError
(
parameter_id
)
def
notification_listener_factory_by_id
(
self
,
id
):
"""
Finds a given notification listener by means of its id.
...
...
@@ -159,5 +156,4 @@ class FactoryRegistryPlugin(Plugin):
if
nl
.
id
==
id
:
return
nl
raise
KeyError
(
"
Unable to find notification listener factory
"
"
with id {} in the registry
"
.
format
(
id
))
raise
KeyError
(
id
)
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