Output the wrong data copy&pastable.
This commit is contained in:
parent
72c7d83766
commit
592eb0cb2c
@ -131,8 +131,8 @@ class AIResponder(object):
|
|||||||
try:
|
try:
|
||||||
response = json.loads(answer['content'])
|
response = json.loads(answer['content'])
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
logging.error(f"failed to parse the answer: {pformat(err)}\n{pformat(answer['content'])}")
|
logging.error(f"failed to parse the answer: {pformat(err)}\n{repr(answer['content'])}")
|
||||||
return AIResponse(None, False, f"ERROR: I could not parse this answer: {pformat(answer['content'])}", None, False)
|
return AIResponse(None, False, f"ERROR: I could not parse this answer: {repr(answer['content'])}", None, False)
|
||||||
if 'hack' not in response or type(response.get('picture', None)) not in (type(None), str):
|
if 'hack' not in response or type(response.get('picture', None)) not in (type(None), str):
|
||||||
continue
|
continue
|
||||||
logging.info(f"got this answer:\n{pformat(response)}")
|
logging.info(f"got this answer:\n{pformat(response)}")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user