Fix bigfile info on non-existent files
This commit is contained in:
parent
48e8b956d2
commit
1250b45694
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class UiWebsocketPlugin(object):
|
|||
return False
|
||||
|
||||
file_info = site.content_manager.getFileInfo(row["inner_path"])
|
||||
if not file_info.get("piece_size"):
|
||||
if not file_info or not file_info.get("piece_size"):
|
||||
return False
|
||||
|
||||
sha512 = file_info["sha512"]
|
||||
|
|
Loading…
Reference in a new issue