Fix bigfile display if no piecemap info present

This commit is contained in:
shortcutme 2017-10-10 14:58:43 +02:00
parent 7ba3d86af4
commit 3030e00b21
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -379,7 +379,7 @@ class SiteStoragePlugin(object):
def openBigfile(self, inner_path, prebuffer=0):
file_info = self.site.content_manager.getFileInfo(inner_path)
if "piecemap" not in file_info: # It's not a big file
if file_info and "piecemap" not in file_info: # It's not a big file
return False
self.site.needFile(inner_path, blocking=False) # Download piecemap