dont end upload pipe if one upload fails

This commit is contained in:
j 2013-07-27 17:42:46 +02:00
parent a9e44a5983
commit 70463c4b8a

View file

@ -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):