From 3553b6ef7839adb264fb1ce34462c15da65ba8c7 Mon Sep 17 00:00:00 2001 From: Adamantios Date: Tue, 29 Oct 2024 20:32:23 +0200 Subject: [PATCH] fix: check in the mech tools as the store might be empty [no ci] (cherry picked from commit da031740fdb00326add2520e921296c2bef76ebc) --- .../skills/decision_maker_abci/behaviours/storage_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/valory/skills/decision_maker_abci/behaviours/storage_manager.py b/packages/valory/skills/decision_maker_abci/behaviours/storage_manager.py index 04e5ba0e9..4682462a0 100644 --- a/packages/valory/skills/decision_maker_abci/behaviours/storage_manager.py +++ b/packages/valory/skills/decision_maker_abci/behaviours/storage_manager.py @@ -284,7 +284,7 @@ def _update_accuracy_store(self) -> None: # update the accuracy store using the latest accuracy information (only entered during the first period) for row in reader: tool = row[self.acc_info_fields.tool] - if tool not in accuracy_store.keys(): + if tool not in self.mech_tools: continue # overwrite local with global information (naturally, no global information is available for pending)