diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b61a5dcac3a750360c03ac0254131deb3e975e37..9237b91473d3c65031dfe7fb248e2739476a5c1e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,6 +9,7 @@ Changelog * Comment class has been cleaned up, use_tags_api has been replaced by api * Add check if get_account_votes is still supported (is dropped in HF24) * New SupportedByHivemind exception has been added +* Fix issue #263 0.24.11 ------- diff --git a/beem/cli.py b/beem/cli.py index 44c554ffbf0f5856ed7992253fb42f6c65601463..55ae596e351333f501bd1511c222a53e45ae30d6 100644 --- a/beem/cli.py +++ b/beem/cli.py @@ -4217,8 +4217,12 @@ def rewards(accounts, only_sum, post, comment, curation, length, author, permlin continue if not comment and c.is_comment(): continue - payout_SBD = Amount(v["sbd_payout"], blockchain_instance=stm) - payout_STEEM = Amount(v["steem_payout"], blockchain_instance=stm) + if "sbd_payout" in v: + payout_SBD = Amount(v["sbd_payout"], blockchain_instance=stm) + payout_STEEM = Amount(v["steem_payout"], blockchain_instance=stm) + else: + payout_SBD = Amount(v["hbd_payout"], blockchain_instance=stm) + payout_STEEM = Amount(v["hive_payout"], blockchain_instance=stm) sum_reward[0] += float(payout_SBD) sum_reward[1] += float(payout_STEEM) payout_SP = stm.vests_to_token_power(Amount(v["vesting_payout"], blockchain_instance=stm))