blind 2to3
[plcapi.git] / PLC / Methods / DeleteInterfaceTag.py
index 5ef9635..164ba53 100644 (file)
@@ -38,7 +38,7 @@ class DeleteInterfaceTag(Method):
     def call(self, auth, interface_tag_id):
         interface_tags = InterfaceTags(self.api, [interface_tag_id])
         if not interface_tags:
-            raise PLCInvalidArgument, "No such interface tag %r"%interface_tag_id
+            raise PLCInvalidArgument("No such interface tag %r"%interface_tag_id)
         interface_tag = interface_tags[0]
 
         tag_type_id = interface_tag['tag_type_id']
@@ -46,7 +46,7 @@ class DeleteInterfaceTag(Method):
 
         interfaces = Interfaces (self.api, interface_tag['interface_id'])
         if not interfaces:
-            raise PLCInvalidArgument, "No such interface %d"%interface_tag['interface_id']
+            raise PLCInvalidArgument("No such interface %d"%interface_tag['interface_id'])
         interface=interfaces[0]
 
         # check authorizations