Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
doudian-py
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiquan
doudian-py
Commits
8e2f8dae
Commit
8e2f8dae
authored
Jul 17, 2025
by
baiquan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(upload): 移除视频上传中的异常捕获逻辑
移除了 upload_image_and_video.py 中的 try-except 块,使代码结构更简洁。现在,视频上传的异常处理将由上层调用者负责。
parent
025ccc1a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
service/upload_image_and_video.py
+1
-4
No files found.
service/upload_image_and_video.py
View file @
8e2f8dae
...
@@ -253,11 +253,8 @@ async def upload_single_video(task: dict, local_path: any, original_url: str, cu
...
@@ -253,11 +253,8 @@ async def upload_single_video(task: dict, local_path: any, original_url: str, cu
else
:
else
:
md5_key
=
"generated_video"
md5_key
=
"generated_video"
try
:
result
=
await
run_in_executor
(
upload_video_with_multithreading
,
task
)
result
=
await
run_in_executor
(
upload_video_with_multithreading
,
task
)
logger
.
success
(
f
'视频上传成功: {result}'
)
logger
.
success
(
f
'视频上传成功: {result}'
)
return
md5_key
,
result
return
md5_key
,
result
except
Exception
as
e
:
logger
.
error
(
f
'视频上传失败: {original_url}, 错误: {str(e)}'
)
return
md5_key
,
None
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment