Skip to content

Commit 3dce9f5

Browse files
author
Alan Christie
committed
fix: Loading ERs only an error if no rates loaded
1 parent 355a81a commit 3dce9f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/load-er.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ def main(c_args: argparse.Namespace, filename: str) -> None:
9292
if not num_rates and not num_rates_failed:
9393
console.log('Loaded [bold red1]nothing[/bold red1]')
9494

95-
# Error states
96-
if num_rates_failed or not num_rates and not num_rates_failed:
95+
# Error if nothing was loaded.
96+
# Errors or jobs without rates are not considered an error
97+
if num_rates == 0:
9798
sys.exit(1)
9899

99100

0 commit comments

Comments
 (0)