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