Skip to content

Commit

Permalink
Update get_granularity return value when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkarakostas committed Jun 7, 2024
1 parent 1603c68 commit 97be384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus_decentralization/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 97be384

Please sign in to comment.