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 *: 'float' and 'decimal.Decimal' #1503

Closed
mbeacom opened this issue Jun 19, 2018 · 1 comment
Closed
Labels
backend This needs backend expertise. bug This is something that isn't working as intended.

Comments

@mbeacom
Copy link
Contributor

mbeacom commented Jun 19, 2018

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

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/gitcoin-3/lib/python3.6/site-packages/django/views/decorators/http.py", line 40, in inner
    return func(request, *args, **kwargs)
  File "/home/ubuntu/gitcoin/gitcoin-3/lib/python3.6/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/home/ubuntu/gitcoin/coin/app/faucet/views.py", line 107, in process_faucet_request
    faucet_amount = float(settings.FAUCET_AMOUNT) * float(recommend_min_gas_price_to_confirm_in_time(5))
TypeError: unsupported operand type(s) for *: 'float' and 'decimal.Decimal'
@mbeacom mbeacom added bug This is something that isn't working as intended. rollbar backend This needs backend expertise. labels Jun 19, 2018
@owocki
Copy link
Contributor

owocki commented Jun 19, 2018

i dont get it. this is pretty explicitly cast to a float

@mbeacom mbeacom closed this as completed Jun 23, 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. bug This is something that isn't working as intended.
Projects
None yet
Development

No branches or pull requests

2 participants