X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FKeyTypes.py;h=e23445570a5c2bcf824765b54d7555baf68e8002;hb=refs%2Ftags%2Fplcapi-7.1-0;hp=df15643b8e83daeb64d088d8982740a9e9582d45;hpb=4e770b3cf4e6b16150fd479ace9854eaee3399b6;p=plcapi.git diff --git a/PLC/KeyTypes.py b/PLC/KeyTypes.py index df15643..e234455 100644 --- a/PLC/KeyTypes.py +++ b/PLC/KeyTypes.py @@ -25,12 +25,12 @@ class KeyType(Row): def validate_key_type(self, name): # Make sure name is not blank if not len(name): - raise PLCInvalidArgument, "Key type must be specified" + raise PLCInvalidArgument("Key type must be specified") # Make sure key type does not alredy exist conflicts = KeyTypes(self.api, [name]) if conflicts: - raise PLCInvalidArgument, "Key type name already in use" + raise PLCInvalidArgument("Key type name already in use") return name