Commit ca861ad6 authored by Vincent Pelletier's avatar Vincent Pelletier

ValueError seems more appropriate than RuntimeError.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2045 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent b7014b83
......@@ -411,7 +411,7 @@ class NodeManager(object):
def _getClassFromNodeType(self, node_type):
klass = NODE_TYPE_MAPPING.get(node_type)
if klass is None:
raise RuntimeError('Unknown node type : %s' % node_type)
raise ValueError('Unknown node type : %s' % node_type)
return klass
def createFromNodeType(self, node_type, **kw):
......
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