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: unsupported operand type(s) for +=: 'int' and 'NoneType' #990

Open
sentry-io bot opened this issue Feb 4, 2021 · 0 comments
Open

TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType' #990

sentry-io bot opened this issue Feb 4, 2021 · 0 comments
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 4, 2021

This exception happened due to a "manual" entry for a file in a snapshot (required because of a missing entry due to another issue). In any case, we should be defensive here (oh wouldn't typing be nice:)

Sentry Issue: HUB-15X

TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType'
  File "django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "projects/ui/views/snapshots.py", line 35, in retrieve
    files = files_viewset.get_queryset(project=project, snapshot=snapshot)
  File "projects/api/views/files.py", line 146, in get_queryset
    info["size"] += file.size
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