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

Display an error when payment_preset is outside the min_amount / max_amount range #154

Open
tarunkumar519 opened this issue Nov 2, 2021 · 0 comments
Labels
feature A request for a new feature. good first issue An easy task that can be completed by someone with no familiarity with the project.

Comments

@tarunkumar519
Copy link

tarunkumar519 commented Nov 2, 2021

im getting this error when user choose credit card as payment option

Traceback (most recent call last):
  File "/home/ubuntu/greed/worker.py", line 203, in run
    self.__user_menu()
  File "/home/ubuntu/greed/worker.py", line 480, in __user_menu
    self.__add_credit_menu()
  File "/home/ubuntu/greed/worker.py", line 773, in __add_credit_menu
    self.__add_credit_cc()
  File "/home/ubuntu/greed/worker.py", line 812, in __add_credit_cc
    min_amount=self.Price(self.cfg["CreditCard"]["min_amount"])))
  File "/home/ubuntu/greed/nuconfig.py", line 15, in __getitem__
    return self.data.__getitem__(item)
KeyError: 'CreditCard'
Exception in <Worker 2036593097>: 'CreditCard'

ok quick edit, i got this issue due to putting payment_preset values below the min_amount in config file.

@Steffo99 Steffo99 added the bug Something that doesn't work as expected. label Nov 2, 2021
@Steffo99 Steffo99 reopened this Nov 2, 2021
@Steffo99 Steffo99 added feature A request for a new feature. good first issue An easy task that can be completed by someone with no familiarity with the project. and removed bug Something that doesn't work as expected. labels Nov 10, 2021
@Steffo99 Steffo99 changed the title Exception in <Worker 2036593097>: 'CreditCard' Display an error when payment_preset is outside the min_amount / max_amount range Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A request for a new feature. good first issue An easy task that can be completed by someone with no familiarity with the project.
Projects
None yet
Development

No branches or pull requests

2 participants