From 6926f2fcf1fa9bda745d7c3ae8e8491b391727dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=A9=20Cassiop=C3=A9e=20Gauthier?= Date: Thu, 11 Apr 2024 21:36:31 -0400 Subject: [PATCH] Fix bug when no filters are applied --- src/pogo_scaled_estimators/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pogo_scaled_estimators/cli.py b/src/pogo_scaled_estimators/cli.py index fe8bf45..025acbe 100644 --- a/src/pogo_scaled_estimators/cli.py +++ b/src/pogo_scaled_estimators/cli.py @@ -25,7 +25,7 @@ def main_cli(): ) args = parser.parse_args() - filters = reduce(operator.or_, args.filters, Filter.NO_FILTER) + filters = reduce(operator.or_, args.filters or [], Filter.NO_FILTER) calculator = Calculator(args.type, filters) calculator.calculate(level=args.level, party=args.party)