X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FDeleteAddressType.py;h=66340f2c2aa71426a5aa75f1f96a75d2e6180720;hb=4facb0674ab3f9e2deac6e92717b71cbd05f3c10;hp=dae2858b124c301a57620636eca9d4dfa57e824f;hpb=f7ce7ce813d4c44502629820a3583f32a99a98f7;p=plcapi.git diff --git a/PLC/Methods/DeleteAddressType.py b/PLC/Methods/DeleteAddressType.py index dae2858..66340f2 100644 --- a/PLC/Methods/DeleteAddressType.py +++ b/PLC/Methods/DeleteAddressType.py @@ -1,5 +1,3 @@ -# $Id$ -# $URL$ from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed @@ -27,7 +25,7 @@ class DeleteAddressType(Method): def call(self, auth, address_type_id_or_name): address_types = AddressTypes(self.api, [address_type_id_or_name]) if not address_types: - raise PLCInvalidArgument, "No such address type" + raise PLCInvalidArgument("No such address type") address_type = address_types[0] address_type.delete() self.event_objects = {'AddressType': [address_type['address_type_id']]}