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

Create defensive check for staging_tree to ensure we don't trigger an error #3380

Closed
sentry-io bot opened this issue May 5, 2022 · 1 comment · Fixed by #3997
Closed

Create defensive check for staging_tree to ensure we don't trigger an error #3380

sentry-io bot opened this issue May 5, 2022 · 1 comment · Fixed by #3997
Assignees
Labels
P2 - normal Priority: Nice to have

Comments

@sentry-io
Copy link

sentry-io bot commented May 5, 2022

Sentry Issue: STUDIO-F4S

AttributeError: 'NoneType' object has no attribute 'tree_id'
(10 additional frame(s) were not displayed)
...
  File "rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
  File "rest_framework/decorators.py", line 50, in handler
    return func(*args, **kwargs)
  File "contentcuration/views/base.py", line 326, in activate_channel_endpoint
    change = activate_channel(channel, request.user)
  File "contentcuration/api.py", line 74, in activate_channel
    user.check_channel_space(channel)
  File "contentcuration/models.py", line 238, in check_channel_space
    staging_tree_id = channel.staging_tree.tree_id
@bjester bjester self-assigned this Aug 2, 2022
@bjester bjester added the P2 - normal Priority: Nice to have label Aug 2, 2022
@vkWeb
Copy link
Member

vkWeb commented Apr 9, 2023

Will be closed with #3997

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 - normal Priority: Nice to have
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants