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

fix traceback when empty call to list

parent 0740b6d9
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ class Command_list(TqlCommand):
# smart merge argument to have a tql
tql = ""
for arg in self.args:
if arg[0] in ("&", "|", "$", "^", "%"):
if len(arg) == 0 or arg[0] in ("&", "|", "$", "^", "%"):
tql += arg
else:
tql += "&%s" % arg
......
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