fixed dict loading

This commit is contained in:
Concedo 2024-07-25 11:41:05 +08:00
parent 0024d9d682
commit 57a98ba308

View file

@ -3659,6 +3659,12 @@ def main(launch_args,start_server=True):
canload = True canload = True
except Exception as ex: except Exception as ex:
print(ex) print(ex)
elif isinstance(args.preloadstory, dict):
try:
preloaded_story = json.dumps(args.preloadstory).encode()
canload = True
except Exception as ex:
print(ex)
if canload: if canload:
print("Saved story preloaded.") print("Saved story preloaded.")
else: else: