diff options
author | hut <hut@lepus.uberspace.de> | 2014-04-11 15:59:07 +0200 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2014-04-11 15:59:07 +0200 |
commit | f57bb6033f146894db542c727c4910cafd25f3f2 (patch) | |
tree | ae54cfbc1d2149ae70328cc309cf0df4367a3d3d /ranger | |
parent | 64e92ada2321ffe4149a4f3f2492a1e34a959881 (diff) | |
parent | eb26387a52b8fbfc93d37ec18952e0837cbf9caf (diff) | |
download | ranger-f57bb6033f146894db542c727c4910cafd25f3f2.tar.gz |
Merge remote-tracking branch 'taylorchu/master'
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/container/file.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/container/file.py b/ranger/container/file.py index b1245647..ab677125 100644 --- a/ranger/container/file.py +++ b/ranger/container/file.py @@ -92,4 +92,7 @@ class File(FileSystemObject): return self.fm.get_preview(self, width, height) def is_image_preview(self): - return 'imagepreview' in self.fm.previews[self.realpath] + try: + return self.fm.previews[self.realpath]['imagepreview'] + except KeyError: + return False |