git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes in sql schema for f37/pgsql14: oddly this was working before
[plcapi.git]
/
PLC
/
NodeTypes.py
diff --git
a/PLC/NodeTypes.py
b/PLC/NodeTypes.py
index
00d4bf7
..
3ae75a6
100644
(file)
--- 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):
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:
# 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
return name