X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=PLC%2FSliceInstantiations.py;h=fd803a928fd412d0fcc9d8210cebefa9a5e0511a;hb=b5780972105512f088c235b1538e6cbbb1ee1ae4;hp=c0658d4c8d36891b4236f1021544a91d6726f25a;hpb=21d187714285d9818fd94509b015ba069facb7ef;p=plcapi.git diff --git a/PLC/SliceInstantiations.py b/PLC/SliceInstantiations.py index c0658d4..fd803a9 100644 --- a/PLC/SliceInstantiations.py +++ b/PLC/SliceInstantiations.py @@ -25,12 +25,12 @@ class SliceInstantiation(Row): def validate_instantiation(self, instantiation): # Make sure name is not blank if not len(instantiation): - raise PLCInvalidArgument, "Slice instantiation state name must be specified" + raise PLCInvalidArgument("Slice instantiation state name must be specified") # Make sure slice instantiation does not alredy exist conflicts = SliceInstantiations(self.api, [instantiation]) if conflicts: - raise PLCInvalidArgument, "Slice instantiation state name already in use" + raise PLCInvalidArgument("Slice instantiation state name already in use") return instantiation