From 63c2009b760100dbf2392dfa9c9c30f1aa7ff61c Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 11 Jul 2024 16:32:12 -0400 Subject: [PATCH] added an extra condition for gasnow empty data --- core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core.py b/core.py index e776208..3ff8698 100755 --- a/core.py +++ b/core.py @@ -373,7 +373,7 @@ def get_beacon_gas_prices(speed=None, cache_interval_seconds=10): r = requests.get('https://beacon.pulsechain.com/api/v1/execution/gasnow') _gas = r.json() except Exception as e: - if not gas: + if not gas or not gas['data']: logging.debug(e) return 5555 * 10 ** 369 else: