dont end upload pipe if one upload fails
This commit is contained in:
parent
a9e44a5983
commit
70463c4b8a
1 changed files with 4 additions and 1 deletions
|
@ -26,7 +26,10 @@ class UploadThread(Thread):
|
||||||
while True:
|
while True:
|
||||||
oshash = self.server.upload.get()
|
oshash = self.server.upload.get()
|
||||||
print oshash
|
print oshash
|
||||||
self.server.client.upload([oshash])
|
try:
|
||||||
|
self.server.client.upload([oshash])
|
||||||
|
except:
|
||||||
|
print 'failed to upload', oshash
|
||||||
self.server.upload.task_done()
|
self.server.upload.task_done()
|
||||||
|
|
||||||
class Server(Resource):
|
class Server(Resource):
|
||||||
|
|
Loading…
Reference in a new issue