diff options
-rw-r--r-- | ranger/container/file.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/container/file.py b/ranger/container/file.py index b1245647..f92ffadb 100644 --- a/ranger/container/file.py +++ b/ranger/container/file.py @@ -92,4 +92,4 @@ class File(FileSystemObject): return self.fm.get_preview(self, width, height) def is_image_preview(self): - return 'imagepreview' in self.fm.previews[self.realpath] + return self.realpath in self.fm.previews and 'imagepreview' in self.fm.previews[self.realpath] |