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 /: 'NoneType' and 'int' #1286

Closed
mbeacom opened this issue May 27, 2018 · 0 comments
Closed

TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' #1286

mbeacom opened this issue May 27, 2018 · 0 comments
Labels
backend This needs backend expertise.

Comments

@mbeacom
Copy link
Contributor

mbeacom commented May 27, 2018

View details in Rollbar: https://rollbar.com/gitcoin/gitcoin/items/1157/

Traceback (most recent call last):
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/ubuntu/gitcoin/coin/app/dashboard/views.py", line 805, in profile
    params = profile.to_dict()
  File "/home/ubuntu/gitcoin/coin/app/dashboard/models.py", line 1332, in to_dict
    sum_eth_funded = self.get_eth_sum(sum_type='funded', **query_kwargs)
  File "/home/ubuntu/gitcoin/coin/app/dashboard/models.py", line 1271, in get_eth_sum
    )['value_in_eth__sum'] / 10**18 if obj.exists() else 0
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
@mbeacom mbeacom added backend This needs backend expertise. rollbar labels May 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend This needs backend expertise.
Projects
None yet
Development

No branches or pull requests

1 participant