Force crash on no election cycle. -1 was causing last item in config array to be used.
build_develop / build (push) Successful in 1m38s

This commit is contained in:
2024-01-01 13:23:29 -05:00
parent fa691ced5d
commit e836ead399
+2 -2
View File
@@ -88,7 +88,7 @@ def get_current_cycle(config: DakinyConfig) -> int:
config (DakinyConfig): Config object to use config (DakinyConfig): Config object to use
Returns: Returns:
int: cycle index for active election. -1 for no active cycle int: cycle index for active election. None for no active cycle
""" """
today = datetime.today() today = datetime.today()
@@ -100,7 +100,7 @@ def get_current_cycle(config: DakinyConfig) -> int:
): ):
return cycle return cycle
return -1 return None
def build_votes_str(config: DakinyConfig) -> str: def build_votes_str(config: DakinyConfig) -> str: