diff options
Diffstat (limited to 'ranger/container/file.py')
-rw-r--r-- | ranger/container/file.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/container/file.py b/ranger/container/file.py index 40a4f73d..3058b9db 100644 --- a/ranger/container/file.py +++ b/ranger/container/file.py @@ -50,13 +50,13 @@ class File(FileSystemObject): def firstbytes(self): try: return self._firstbytes - except: + except Exception: try: f = open(self.path, 'r') self._firstbytes = f.read(N_FIRST_BYTES) f.close() return self._firstbytes - except: + except Exception: pass def is_binary(self): |