From 97be384706c2dd9110355f98deb6711569a6d769 Mon Sep 17 00:00:00 2001 From: Dimitris Karakostas Date: Fri, 7 Jun 2024 11:18:59 +0300 Subject: [PATCH] Update get_granularity return value when empty --- consensus_decentralization/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus_decentralization/helper.py b/consensus_decentralization/helper.py index 7a13b91..8833cea 100644 --- a/consensus_decentralization/helper.py +++ b/consensus_decentralization/helper.py @@ -382,7 +382,7 @@ def get_granularity(): else: raise ValueError('Malformed "granularity" in config; should be one of: "day", "week", "month", "year", or empty') else: - return None + return 'all' except KeyError: raise ValueError('"granularity" not in config file')