summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Ilsaas <mikeri@mikeri.net>2018-04-28 12:01:38 +0200
committerMichael Ilsaas <mikeri@mikeri.net>2018-04-28 12:01:38 +0200
commit9f60ca76603e820b1e2f26f91880ca05ec0d75f4 (patch)
tree2356d59ba151172c318eb5267f1a2e0156532a3f
parent1f4d1a3dbbfd2d116d8685fe38be3a3ce91cd34a (diff)
downloadranger-9f60ca76603e820b1e2f26f91880ca05ec0d75f4.tar.gz
Fixed bare exception, added OSError
-rwxr-xr-xranger/ext/rifle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/rifle.py b/ranger/ext/rifle.py
index 1bc7e3b6..672b0597 100755
--- a/ranger/ext/rifle.py
+++ b/ranger/ext/rifle.py
@@ -267,7 +267,7 @@ class Rifle(object):  # pylint: disable=too-many-instance-attributes
                                     stdout=PIPE, stderr=PIPE)
                     mimetype, _ = process.communicate()
                     self._mimetype = mimetype.decode(ENCODING).strip()
-                except:
+                except OSError:
                     pass
         return self._mimetype