Commit 915f8947 authored by hujun's avatar hujun

1

parent f0fbbc46
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment