Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
download
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
download
Commits
915f8947
Commit
915f8947
authored
Oct 28, 2022
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f0fbbc46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
download.py
download.py
+7
-9
No files found.
download.py
View file @
915f8947
...
...
@@ -104,13 +104,12 @@ class DownFile:
if
int
(
item
[
'type'
])
==
1
:
try
:
# self.local.count_sleep = self.local.count_sleep + 1 # 增加暂停计数
self
.
lock
.
acquire
()
self
.
local
.
url
=
self
.
ali_yun_sdk
(
item
[
'call_time'
],
item
[
'call_id'
])
self
.
lock
.
release
()
self
.
local
.
is_ok
=
0
except
Exception
as
result
:
# self.lock.acquire()
# self.log("exception 20s------------", str(result))
# self.lock.release()
# time.sleep(20)
self
.
log
(
"exception 20s------------"
,
str
(
result
))
self
.
local
.
is_ok
=
1
# 第二次尝试
...
...
@@ -122,11 +121,10 @@ class DownFile:
self
.
lock
.
release
()
except
Exception
as
result
:
# self.lock.acquire()
# self.log(
# "two exception error-----call_time=" + item['call_time'] + '&call_id=' + item['call_id'],
# str(result))
# self.lock.release()
self
.
log
(
"two exception error-----call_time="
+
item
[
'call_time'
]
+
'&call_id='
+
item
[
'call_id'
],
str
(
result
))
if
len
(
self
.
local
.
url
)
==
0
:
continue
...
...
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