summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-02 20:00:17 +0200
committerhut <hut@lavabit.com>2011-10-02 20:00:17 +0200
commit9db1828fb544685615d99a4969a49258f58ebb21 (patch)
tree077f2637301a748224958b24045281349138a29e
parent4a04a9530d77c78c3574bb8b320f7ea3f163b13f (diff)
downloadranger-9db1828fb544685615d99a4969a49258f58ebb21.tar.gz
api.apps: fixed error message
-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)):