From 70463c4b8a36750c35057117e624dd7a9c522d1b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 27 Jul 2013 17:42:46 +0200 Subject: [PATCH] dont end upload pipe if one upload fails --- pandora_client/server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandora_client/server.py b/pandora_client/server.py index 74302d0..895630f 100644 --- a/pandora_client/server.py +++ b/pandora_client/server.py @@ -26,7 +26,10 @@ class UploadThread(Thread): while True: oshash = self.server.upload.get() print oshash - self.server.client.upload([oshash]) + try: + self.server.client.upload([oshash]) + except: + print 'failed to upload', oshash self.server.upload.task_done() class Server(Resource):