小修改

This commit is contained in:
dongchangxi committed 2025-07-14 16:32:49 +08:00
1 parent 25c97708e7
commit f107e44977
2 files changed
+11

No files matched your search

+1
View File
@@ -57,3 +57,4 @@ openapi/__pycache__/utils.cpython-311.pyc
tools/pic_for_obj.zip
yj_local_build/xml.zip
openapi.zip
apps/__pycache__/
+10
View File
@@ -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()