diff options
-rw-r--r-- | ranger/defaults/apps.py | 5 |
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) |