mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-04 10:20:21 +01:00
resolved TODO
This commit is contained in:
@@ -174,8 +174,7 @@ def retry_on_exception(func):
|
||||
# - 'Unterminated string starting at'
|
||||
if e.msg.startswith('Expecting') or e.msg == 'Unterminated string starting at':
|
||||
if e.msg == 'Expecting value' and len(e.doc) > e.pos:
|
||||
# TODO: attempt to heal True/False boolean values
|
||||
# if e.doc[e.pos] == '{':
|
||||
# Note: clean_json_response() should heal True/False boolean values
|
||||
err_str = re.split(r'[},\\n]', e.doc[e.pos:])[0]
|
||||
err_str = f'Invalid value: `{err_str}`'
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user