From 88347ac824a8cded2a0bb7f2e1febdcc70485060 Mon Sep 17 00:00:00 2001 From: agatha Date: Sat, 8 Jun 2024 14:41:38 -0400 Subject: [PATCH] test fix for failed abi lookup --- monitor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/monitor.py b/monitor.py index beaf3d5..0abc81e 100644 --- a/monitor.py +++ b/monitor.py @@ -40,6 +40,9 @@ class EventMonitor: token_abi = fetch_abi(token_address, key=self.config['etherscan_key']) except Exception as err: logger.warning(f"Failed to fetch info for {token_address}: {err}") + token_abi = None + + if not token_abi: return { 'name': None, 'symbol': None,