Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Unregister service value error bug #345

Merged
merged 10 commits into from
Oct 27, 2020
Prev Previous commit
Next Next commit
flake8
  • Loading branch information
aaronayres35 committed Oct 26, 2020
commit ae4875ff83e6881f727330a498d4c73790c09aad
2 changes: 1 addition & 1 deletion envisage/core_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from envisage.extension_point import ExtensionPoint
from envisage.plugin import Plugin
from envisage.service_offer import ServiceOffer
from traits.api import List, observe, on_trait_change, Str
from traits.api import List, on_trait_change, Str


class CorePlugin(Plugin):
Expand Down
2 changes: 1 addition & 1 deletion envisage/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def unregister_services(self):
for service_id in service_ids:
# note the service may have already been individually unregistered
aaronayres35 marked this conversation as resolved.
Show resolved Hide resolved
try:
self.application.service_registry.get_service_from_id(service_id)
self.application.service_registry.get_service_from_id(service_id) # noqa: E501
aaronayres35 marked this conversation as resolved.
Show resolved Hide resolved
except ValueError:
pass
else:
Expand Down