X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FBootStates.py;h=d58bb93f3e53c5e509b6312c4552bbb1ffbbbf37;hb=1b1b5a911bb005644baabb87ecba60602228a070;hp=11cd3b76dedaace21b1b9c5d8856f18d8ddfe9f6;hpb=bd0cbf4f7f2e4cf7ceda500bfa6f98c0a700018b;p=plcapi.git diff --git a/PLC/BootStates.py b/PLC/BootStates.py index 11cd3b7..d58bb93 100644 --- a/PLC/BootStates.py +++ b/PLC/BootStates.py @@ -25,12 +25,12 @@ class BootState(Row): def validate_boot_state(self, name): # Make sure name is not blank if not len(name): - raise PLCInvalidArgument, "Boot state must be specified" + raise PLCInvalidArgument("Boot state must be specified") - # Make sure boot state does not alredy exist + # Make sure boot state does not already exist conflicts = BootStates(self.api, [name]) if conflicts: - raise PLCInvalidArgument, "Boot state name already in use" + raise PLCInvalidArgument("Boot state name already in use") return name