summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/batch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/batch.py b/ipalib/plugins/batch.py
index 6a5b383ff..517f4b92b 100644
--- a/ipalib/plugins/batch.py
+++ b/ipalib/plugins/batch.py
@@ -89,7 +89,7 @@ class batch(Command):
def execute(self, *args, **options):
results = []
- for arg in args[0]:
+ for arg in (args[0] or []):
params = dict()
name = None
try: