fixes in sql schema for f37/pgsql14: oddly this was working before
[plcapi.git] / PLC / NodeTypes.py
index eb8eb99..3ae75a6 100644 (file)
@@ -1,8 +1,6 @@
 #
 # Functions for interacting with the node_types table in the database
 #
-# $Id$
-# $URL$
 #
 
 from PLC.Faults import *
@@ -25,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