X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FNodeTypes.py;h=3ae75a649e4382e9eec106b879cf1ea9da98606c;hb=3b44c0228c26dc43d985185afc225caa5f48c1fb;hp=00d4bf71a44234eb23b12777030b197608caebc8;hpb=997c5bbe5b0576ae8c9c8d52a80dab1dcecf615a;p=plcapi.git diff --git a/PLC/NodeTypes.py b/PLC/NodeTypes.py index 00d4bf7..3ae75a6 100644 --- a/PLC/NodeTypes.py +++ b/PLC/NodeTypes.py @@ -23,12 +23,12 @@ class NodeType(Row): def validate_node_type(self, name): # Make sure name is not blank if not len(name): - raise PLCInvalidArgument, "Node type must be specified" + raise PLCInvalidArgument("Node type must be specified") # Make sure node type does not alredy exist conflicts = NodeTypes(self.api, [name]) if conflicts: - raise PLCInvalidArgument, "Node type name already in use" + raise PLCInvalidArgument("Node type name already in use") return name