forked from 0x2620/pandora
session can be gone
This commit is contained in:
parent
b991a3c381
commit
110c57d726
1 changed files with 4 additions and 1 deletions
|
@ -36,7 +36,10 @@ def update_statistics():
|
|||
@task(ignore_results=True, queue='default')
|
||||
def parse_data(key):
|
||||
from . import models
|
||||
session_data = models.SessionData.objects.get(session_key=key)
|
||||
try:
|
||||
session_data = models.SessionData.objects.get(session_key=key)
|
||||
except models.SessionData.DoesNotExist:
|
||||
return
|
||||
session_data.parse_data()
|
||||
session_data.save()
|
||||
|
||||
|
|
Loading…
Reference in a new issue