i have been trying to get chatgpt to write code-improving code by feeding error-producing code back into the ChatGPT API currently it runs the code to improve.py in VSCode which will throw an exception requiring manual intervention not sure how to bypass this but plz halp