增加发送segments
This commit is contained in:
3
.github/workflows/build-windows-full.yml
vendored
3
.github/workflows/build-windows-full.yml
vendored
@@ -4,8 +4,7 @@ on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
workflow_dispatch:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
|
||||
jobs:
|
||||
build-windows:
|
||||
|
||||
@@ -58,6 +58,8 @@ Warning: Never wrap the entire JSON object in quotes to make it a single string.
|
||||
self.logger.info(f"json解析错误,解析文本:{chunk_str},错误:{e.__repr__()}")
|
||||
except ValueError as e:
|
||||
self.logger.info(f"value错误,更新对象:{indexed_translated},错误:{e.__repr__()}")
|
||||
except Exception as e:
|
||||
self.logger.info(f"send_segments错误:{e.__repr__()}")
|
||||
|
||||
# 初始化结果列表
|
||||
result = []
|
||||
@@ -91,6 +93,8 @@ Warning: Never wrap the entire JSON object in quotes to make it a single string.
|
||||
self.logger.info(f"json解析错误,解析文本:{chunk_str},错误:{e.__repr__()}")
|
||||
except ValueError as e:
|
||||
self.logger.info(f"value错误,更新对象:{indexed_translated},错误:{e.__repr__()}")
|
||||
except Exception as e:
|
||||
self.logger.info(f"send_segments错误:{e.__repr__()}")
|
||||
|
||||
|
||||
# 初始化结果列表
|
||||
|
||||
Reference in New Issue
Block a user