# Get node
nodes = Nodes(self.api, [node_id_or_hostname])
if not nodes:
- raise PLCInvalidArgument, "No such node"
+ raise PLCInvalidArgument("No such node")
node = nodes[0]
# Get PCU
pcus = PCUs(self.api, [pcu_id])
if not pcus:
- raise PLCInvalidArgument, "No such PCU"
+ raise PLCInvalidArgument("No such PCU")
pcu = pcus[0]
ok = True
break
if not ok:
- raise PLCPermissionDenied, "Not allowed to update that PCU"
+ raise PLCPermissionDenied("Not allowed to update that PCU")
# Removed node from PCU