Support verify content.json directly from parsed dict
This commit is contained in:
parent
21cfa653ca
commit
3812aa6502
1 changed files with 4 additions and 1 deletions
|
@ -616,6 +616,9 @@ class ContentManager(object):
|
|||
if inner_path.endswith("content.json"): # content.json: Check using sign
|
||||
from Crypt import CryptBitcoin
|
||||
try:
|
||||
if type(file) is dict:
|
||||
new_content = file
|
||||
else:
|
||||
new_content = json.load(file)
|
||||
if inner_path in self.contents:
|
||||
old_content = self.contents.get(inner_path)
|
||||
|
|
Loading…
Reference in a new issue