forked from 0x2620/pandora
person can be removed again, let async itemsort fail without exception
This commit is contained in:
parent
fd9d3bdabf
commit
af0e0cffe8
1 changed files with 5 additions and 2 deletions
|
@ -7,8 +7,11 @@ import models
|
|||
|
||||
@task(ignore_results=True, queue='default')
|
||||
def update_itemsort(id):
|
||||
p = models.Person.objects.get(pk=id)
|
||||
p.update_itemsort()
|
||||
try:
|
||||
p = models.Person.objects.get(pk=id)
|
||||
p.update_itemsort()
|
||||
except models.Person.DoesNotExist:
|
||||
pass
|
||||
|
||||
@task(ignore_results=True, queue='default')
|
||||
def update_file_paths(id):
|
||||
|
|
Loading…
Reference in a new issue