diff options
author | Michael Ilsaas <mikeri@mikeri.net> | 2018-04-28 12:01:38 +0200 |
---|---|---|
committer | Michael Ilsaas <mikeri@mikeri.net> | 2018-04-28 12:01:38 +0200 |
commit | 9f60ca76603e820b1e2f26f91880ca05ec0d75f4 (patch) | |
tree | 2356d59ba151172c318eb5267f1a2e0156532a3f /ranger | |
parent | 1f4d1a3dbbfd2d116d8685fe38be3a3ce91cd34a (diff) | |
download | ranger-9f60ca76603e820b1e2f26f91880ca05ec0d75f4.tar.gz |
Fixed bare exception, added OSError
Diffstat (limited to 'ranger')
-rwxr-xr-x | ranger/ext/rifle.py | 2 |
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 |