From 2052eb746f1d29273e873d4758742adf0584b1e0 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 20 Jan 2010 03:29:28 +0100 Subject: apps: catch a TypeError --- ranger/defaults/apps.py | 5 +++-- 1 file 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) -- cgit 1.4.1-2-gfad0