summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/api/apps.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/api/apps.py b/ranger/api/apps.py
index 86c7b017..dc4918d8 100644
--- a/ranger/api/apps.py
+++ b/ranger/api/apps.py
@@ -106,6 +106,8 @@ class Applications(FileManagerAware):
 		# flatten
 		if isinstance(arguments, str):
 			return (arguments, )
+		if arguments is None:
+			return None
 		result = []
 		for obj in arguments:
 			if isinstance(obj, (tuple, list, Context)):