Fix : while upload file is missing, uploader will pass the file

This commit is contained in:
JerryYan ECS 2019-03-12 20:51:37 +08:00
parent 19d48ed324
commit 179b808de6

View File

@ -146,6 +146,8 @@ def upload(date=datetime.strftime(datetime.now(), "%Y_%m_%d")):
b.clear()
break
print("{} : Upload {}".format(datetime.strftime(datetime.now(), "%y%m%d %H%M"), i))
if not os.path.exist(i):
continue
try:
b.preUpload(VideoPart(i, os.path.basename(i)))
except: