Skip to content
Snippets Groups Projects
Commit 8e2d7111 authored by Seblu's avatar Seblu
Browse files

fix delright don't use type index as integer

parent bbde58a5
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment