From 8e2d7111768d8d2d6572b8e664784d7c85f340dd Mon Sep 17 00:00:00 2001
From: Seblu <sebastien.luttringer@smartjog.com>
Date: Mon, 21 Feb 2011 13:39:40 +0100
Subject: [PATCH] fix delright don't use type index as integer

---
 cccli/command/right.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/cccli/command/right.py b/cccli/command/right.py
index 4b72146..2c0484a 100644
--- a/cccli/command/right.py
+++ b/cccli/command/right.py
@@ -85,7 +85,10 @@ class Command_delright(TqlCommand):
         if len(self.args) != 2:
             raise cmdBadArgument()
         # building list of index
-        l = self.args[1:]
+        try:
+            l = [ int(x) for x in self.args[1:] ]
+        except ValueError as e:
+            raise cmdBadArgument("Indexes must be numbers")
         # if all is detected
         if "*" in l:
             self.rpccall("delright", self.args[0], None)
-- 
GitLab