q6 commited on
Commit
94844d3
·
1 Parent(s): 2cefecf

novelai update

Browse files
Files changed (1) hide show
  1. Client/Scripts/novelai.py +1 -1
Client/Scripts/novelai.py CHANGED
@@ -56,7 +56,7 @@ def extract_stealth_png(path):
56
  if "Comment" in json_data and isinstance(json_data["Comment"], str):
57
  json_data["Comment"] = json.loads(json_data["Comment"])
58
  except json.JSONDecodeError:
59
- print(str(json_bytes))
60
  return json_data
61
 
62
 
 
56
  if "Comment" in json_data and isinstance(json_data["Comment"], str):
57
  json_data["Comment"] = json.loads(json_data["Comment"])
58
  except json.JSONDecodeError:
59
+ return {"WebUI": json_bytes.decode("utf-8", errors="replace")}
60
  return json_data
61
 
62