dever 6 years ago
parent
commit
60ab229ade
1 changed files with 2 additions and 1 deletions
  1. 2 1
      pic.py

+ 2 - 1
pic.py

@@ -43,7 +43,8 @@ def ossLoad(value, prefix, marker=''):
 		for v in data.object_list:
 			pics.append((v.key, v.last_modified))
 		for v in pics[-10:]:
-			savePic(value, v[0], v[1])
+			if v[0]:
+				savePic(value, v[0], v[1])
 	#oss2.resumable_download(bucket, 'remote.txt', 'local.txt')
 
 def savePic(value, file, cur):