summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-20 03:29:28 +0100
committerhut <hut@lavabit.com>2010-01-20 03:29:28 +0100
commit2052eb746f1d29273e873d4758742adf0584b1e0 (patch)
tree8c375a794536aece5eb64230d21375ef77791eac /ranger
parent79f37c34e17f1e451e5b7bd74da0d022e0e3d7c5 (diff)
downloadranger-2052eb746f1d29273e873d4758742adf0584b1e0.tar.gz
apps: catch a TypeError
Diffstat (limited to 'ranger')
-rw-r--r--ranger/defaults/apps.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py
index 0bb1c5cb..5117a027 100644
--- a/ranger/defaults/apps.py
+++ b/ranger/defaults/apps.py
@@ -31,8 +31,9 @@ class CustomApplications(Applications):
 			if f.extension in ('swc', 'smc'):
 				return self.app_zsnes(c)
 
-		if INTERPRETED_LANGUAGES.match(f.mimetype):
-			return self.app_edit_or_run(c)
+		if f.mimetype is not None:
+			if INTERPRETED_LANGUAGES.match(f.mimetype):
+				return self.app_edit_or_run(c)
 
 		if f.container:
 			return self.app_aunpack(c)