From 51342ccf97cd560d2823c84490429d0f49510f95 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 30 Nov 2010 16:36:09 +0100 Subject: [PATCH] do not fail firefogg upload if rabbitmq is down --- pandora/archive/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandora/archive/views.py b/pandora/archive/views.py index 8a5f91677..7a585d16c 100644 --- a/pandora/archive/views.py +++ b/pandora/archive/views.py @@ -228,7 +228,10 @@ def firefogg_upload(request): f.available = True f.save() #FIXME: this fails badly if rabbitmq goes down - item.tasks.update_streams.delay(f.item.itemId) + try: + item.tasks.update_streams.delay(f.item.itemId) + except: + pass response['result'] = 1 response['done'] = 1 return render_to_json_response(response)