do not fail firefogg upload if rabbitmq is down

This commit is contained in:
j 2010-11-30 16:36:09 +01:00
parent 421d5aa36a
commit 51342ccf97

View file

@ -228,7 +228,10 @@ def firefogg_upload(request):
f.available = True f.available = True
f.save() f.save()
#FIXME: this fails badly if rabbitmq goes down #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['result'] = 1
response['done'] = 1 response['done'] = 1
return render_to_json_response(response) return render_to_json_response(response)