git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
adopt similar approach in delete leases, although this was harmless
[plcapi.git]
/
PLC
/
Methods
/
DeletePCUType.py
diff --git
a/PLC/Methods/DeletePCUType.py
b/PLC/Methods/DeletePCUType.py
index
6d545cb
..
752ea32
100644
(file)
--- a/
PLC/Methods/DeletePCUType.py
+++ b/
PLC/Methods/DeletePCUType.py
@@
-24,7
+24,7
@@
class DeletePCUType(Method):
def call(self, auth, pcu_type_id):
pcu_types = PCUTypes(self.api, [pcu_type_id])
if not pcu_types:
- raise PLCInvalidArgument
, "No such pcu type"
+ raise PLCInvalidArgument
("No such pcu type")
pcu_type = pcu_types[0]
pcu_type.delete()