|
|
|
|
@ -246,10 +246,20 @@ if __name__ == '__main__':
@@ -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() |
|
|
|
|
|