don't take AccessResult of a specific task type for checking results

This commit is contained in:
Laura Klünder 2016-10-04 20:44:47 +02:00
parent d0c7d4eaed
commit 49d2a7a648

View file

@ -1,6 +1,7 @@
from abc import ABC, abstractmethod
from urllib.parse import urlparse, urlunparse
from celery.result import AsyncResult
from django.conf import settings
from django.urls.base import reverse
from django.utils.translation import ugettext_lazy as _
@ -68,7 +69,7 @@ class Hoster(ABC):
state = session_data.setdefault('state', 'logged_out')
if state == 'checking':
task = request_access_token_task.AsyncResult(task_id=session_data.get('checking_progress_id'))
task = AsyncResult(id=session_data.get('checking_progress_id'))
self._handle_checking_task(request, task, session_data)
state = session_data['state']