Fix bigfile info on non-existent files

This commit is contained in:
shortcutme 2018-01-28 16:42:56 +01:00
parent 48e8b956d2
commit 1250b45694
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -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"]