X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FSliceInstantiations.py;h=fd803a928fd412d0fcc9d8210cebefa9a5e0511a;hb=afaa86e866019b80eb3524706fc19837047c2e49;hp=c0658d4c8d36891b4236f1021544a91d6726f25a;hpb=4e770b3cf4e6b16150fd479ace9854eaee3399b6;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