Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'NoneType' object is not subscriptable #3146

Closed
sentry-io bot opened this issue May 12, 2021 · 2 comments
Closed

TypeError: 'NoneType' object is not subscriptable #3146

sentry-io bot opened this issue May 12, 2021 · 2 comments
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented May 12, 2021

Update to catch TypeError as well as KeyError

Sentry Issue: STUDIO-EAK

TypeError: 'NoneType' object is not subscriptable
(10 additional frame(s) were not displayed)
...
  File "rest_framework/views.py", line 492, in dispatch
    response = handler(request, *args, **kwargs)
  File "contentcuration/viewsets/base.py", line 520, in list
    return Response(self.serialize(queryset))
  File "contentcuration/viewsets/base.py", line 509, in serialize
    return self.consolidate(list(map(self._map_fields, queryset or [])), queryset)
  File "contentcuration/viewsets/task.py", line 77, in consolidate
    progress = task_result.progress
  File "contentcuration/utils/celery/tasks.py", line 142, in progress
    return self.result["progress"] if self.result else 0
@sentry-io
Copy link
Author

sentry-io bot commented Jun 30, 2021

Sentry issue: STUDIO-EJP

@bjester bjester added this to the 2022Q1 Phase 1: tasks milestone Feb 15, 2022
@bjester bjester self-assigned this May 25, 2022
@bjester
Copy link
Member

bjester commented Aug 2, 2022

This will be negated by #3332

@bjester bjester closed this as completed Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant