From 89b5427e47d707a53927177bd9603c0c48d1c6c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Eckel?= Date: Tue, 21 Feb 2023 10:57:37 +0100 Subject: [PATCH] fixed bug : roll back caused from_dict call on a None object (#327) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fixed bug : roll back caused from_dict call on a None object Signed-off-by: Jürgen Eckel * blackified Signed-off-by: Jürgen Eckel * simplified fix Signed-off-by: Jürgen Eckel * blackified Signed-off-by: Jürgen Eckel --------- Signed-off-by: Jürgen Eckel --- planetmint/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planetmint/lib.py b/planetmint/lib.py index 661aacb..f56a601 100644 --- a/planetmint/lib.py +++ b/planetmint/lib.py @@ -919,7 +919,7 @@ class Planetmint(object): txns = [self.get_transaction(tx_id) for tx_id in txn_ids] - txns = [Transaction.from_dict(tx.to_dict()) for tx in txns] + txns = [Transaction.from_dict(tx.to_dict()) for tx in txns if tx] elections = self._get_votes(txns) for election_id in elections: