about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/container/tags.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ranger/container/tags.py b/ranger/container/tags.py
index d73b1cf1..e43fcb78 100644
--- a/ranger/container/tags.py
+++ b/ranger/container/tags.py
@@ -30,6 +30,8 @@ class Tags(FileManagerAware):
         return item in self.tags
 
     def add(self, *items, **others):
+        if len(*items) == 0:
+            return
         tag = others.get('tag', self.default_tag)
         self.sync()
         for item in items:
@@ -37,6 +39,8 @@ class Tags(FileManagerAware):
         self.dump()
 
     def remove(self, *items):
+        if len(*items) == 0:
+            return
         self.sync()
         for item in items:
             try:
@@ -46,6 +50,8 @@ class Tags(FileManagerAware):
         self.dump()
 
     def toggle(self, *items, **others):
+        if len(*items) == 0:
+            return
         tag = others.get('tag', self.default_tag)
         tag = str(tag)
         if tag not in ALLOWED_KEYS: