Skip to content

Commit

Permalink
fix: len to sum
Browse files Browse the repository at this point in the history
  • Loading branch information
avishaihalev committed Mar 26, 2024
1 parent f4aedce commit 3ec4bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expfig/fig.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _parse_config(self):
def _split_config_file_args(self):
config_arg_loc = [x.startswith('--config') for x in sys.argv]

if len(config_arg_loc) > 1:
if sum(config_arg_loc) > 1:
msg = "Multiple --config arguments encountered. Pass multiple configs with a single --config prefix, e.g. " \
"'python script.py --config config_1.yaml config_2.yaml'"
raise TypeError(msg)
Expand Down

0 comments on commit 3ec4bf5

Please sign in to comment.