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

ZeroDivisionError: float division by zero #1806

Closed
mbeacom opened this issue Jul 20, 2018 · 3 comments
Closed

ZeroDivisionError: float division by zero #1806

mbeacom opened this issue Jul 20, 2018 · 3 comments
Labels
backend This needs backend expertise.

Comments

@mbeacom
Copy link
Contributor

mbeacom commented Jul 20, 2018

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

Traceback (most recent call last):
  File "/home/ubuntu/gitcoin/gitcoin-37/lib/python3.7/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/retail/views.py", line 375, in results
    context = build_stat_results(keyword)
  File "/home/ubuntu/gitcoin/coin/app/retail/utils.py", line 212, in build_stat_results
    results = build_stat_results_helper(keyword)
  File "/home/ubuntu/gitcoin/coin/app/retail/utils.py", line 300, in build_stat_results_helper
    completion_rate = get_completion_rate(keyword)
  File "/home/ubuntu/gitcoin/coin/app/retail/utils.py", line 154, in get_completion_rate
    return ((completed_bounties * 1.0 / total_bounties)) * 100
ZeroDivisionError: float division by zero
@mbeacom mbeacom added backend This needs backend expertise. rollbar labels Jul 20, 2018
@arku
Copy link
Contributor

arku commented Jul 20, 2018

@mbeacom This is a duplicate of #1650 and is fixed in #1805

Think we can close this. Thoughts?

@mbeacom
Copy link
Contributor Author

mbeacom commented Jul 21, 2018

These issues are automatically generated. Closing. Thanks!

@mbeacom mbeacom closed this as completed Jul 21, 2018
@arku
Copy link
Contributor

arku commented Jul 21, 2018

@mbeacom Oh, good to know.

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

2 participants