forked from 0x2620/pandora
do not fail firefogg upload if rabbitmq is down
This commit is contained in:
parent
421d5aa36a
commit
51342ccf97
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue