Skip to content
Snippets Groups Projects
Commit 32c9cc2d authored by Stefano Borini's avatar Stefano Borini
Browse files

Prevent plugin to be None

parent 70251ce9
No related branches found
No related tags found
1 merge request!130Safer plugin import - 2
......@@ -49,7 +49,7 @@ class BaseDataSourceFactory(ABCHasStrictTraits):
#: Reference to the plugin that carries this factory
#: This is automatically set by the system. you should not define it
#: in your subclass.
plugin = Instance(Plugin)
plugin = Instance(Plugin, allow_none=False)
def __init__(self, plugin, *args, **kwargs):
self.plugin = plugin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment