diff --git a/packages/valory/skills/decision_maker_abci/states/redeem.py b/packages/valory/skills/decision_maker_abci/states/redeem.py index 017eb78ba..dbcc2f670 100644 --- a/packages/valory/skills/decision_maker_abci/states/redeem.py +++ b/packages/valory/skills/decision_maker_abci/states/redeem.py @@ -60,7 +60,7 @@ def end_block(self) -> Optional[Tuple[BaseSynchronizedData, Enum]]: if synced_data.period_count == 0: # necessary for persisted keys to function properly and not raise an exception when the first period ends update = { - db_key: getattr(synced_data.db, db_key, None) + db_key: synced_data.db.get(db_key, None) for db_key in RedeemRound.selection_key } synced_data.db.update(**update)