diff --git a/.gitignore b/.gitignore index 1211cf9..258c083 100644 --- a/.gitignore +++ b/.gitignore @@ -57,3 +57,4 @@ openapi/__pycache__/utils.cpython-311.pyc tools/pic_for_obj.zip yj_local_build/xml.zip openapi.zip +apps/__pycache__/ diff --git a/comfyui/main.py b/comfyui/main.py index f94285f..6a52571 100644 --- a/comfyui/main.py +++ b/comfyui/main.py @@ -246,10 +246,20 @@ if __name__ == '__main__': except json.JSONDecodeError as e: print(f'JSON解析错误:{e}') utils.notify(f'JSON解析错误:{e}') + + + tempFile = os.path.join(downloadPath, f"{pid}_{orderId}_{styleNumber}_解析错误.txt") + with open(tempFile, 'w') as f: + f.write('') + time.sleep(10) continue except Exception as e: + print(f'错误:{e}') + tempFile = os.path.join(downloadPath, f"{pid}_{orderId}_{styleNumber}_异常错误.txt") + with open(tempFile, 'w') as f: + f.write(e) utils.notify(f'错误:{e}') time.sleep(10) r = utils.create_redis_connection()