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

beempy pending CLI KeyError: 'total_payout_value' #279

Open
photobook-hive opened this issue Jan 16, 2021 · 0 comments
Open

beempy pending CLI KeyError: 'total_payout_value' #279

photobook-hive opened this issue Jan 16, 2021 · 0 comments

Comments

@photobook-hive
Copy link
Contributor

The "pending" option seems to be broken.

with -v for pending curation rewards, no output is given.
with -p for pending post rewards i got this error:

/usr/local/bin/beempy pending -p playcard
Traceback (most recent call last):
File "/usr/local/bin/beempy", line 10, in
sys.exit(cli())
File "/home/pi/.local/lib/python3.7/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/pi/.local/lib/python3.7/site-packages/click_shell/core.py", line 164, in invoke
ret = super(Shell, self).invoke(ctx)
File "/home/pi/.local/lib/python3.7/site-packages/click/core.py", line 1289, in invoke
rv.append(sub_ctx.command.invoke(sub_ctx))
File "/home/pi/.local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/pi/.local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/beem/cli.py", line 4449, in pending
author_reward = v.get_author_rewards()
File "/usr/local/lib/python3.7/dist-packages/beem/comment.py", line 495, in get_author_rewards
"total_payout_SBD": Amount(self["total_payout_value"], blockchain_instance=self.blockchain)}
File "/usr/local/lib/python3.7/dist-packages/beem/blockchainobject.py", line 210, in getitem
return super(BlockchainObject, self).getitem(key)
KeyError: 'total_payout_value'

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