Commit fb1b50d9 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Sorry, the conditional was reverse.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38117 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9b546e39
...@@ -39,7 +39,7 @@ connection_plugin_registry = {} ...@@ -39,7 +39,7 @@ connection_plugin_registry = {}
def registerConnectionPlugin(name, klass, ignore_duplicate=False): def registerConnectionPlugin(name, klass, ignore_duplicate=False):
if not ignore_duplicate: if not ignore_duplicate:
if name not in connection_plugin_registry: if name in connection_plugin_registry:
raise ValueError('The connection plugin %r has already been registered in the registry %r' % (name, connection_plugin_registry)) raise ValueError('The connection plugin %r has already been registered in the registry %r' % (name, connection_plugin_registry))
connection_plugin_registry[name] = klass connection_plugin_registry[name] = klass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment