Skip to content

Commit

Permalink
Fix bigfile display if no piecemap info present
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Oct 10, 2017
1 parent 7ba3d86 commit 3030e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Bigfile/BigfilePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def write(self, inner_path, content):

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
Expand Down

0 comments on commit 3030e00

Please sign in to comment.