Skip to content

Commit

Permalink
Fix CLI search
Browse files Browse the repository at this point in the history
  • Loading branch information
StSav012 committed Apr 2, 2024
1 parent dfa6966 commit 2d5fa7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pycatsearch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def main_cli() -> int:
args: Namespace = ap.parse_intermixed_args()

search_args: dict[str, str | float | int] = dict(
(key, value) for key, value in args.__dict__.items() if key != "catalog"
(key, value) for key, value in args.__dict__.items() if key != "catalog" and value is not None
)
if any(value is not None for value in search_args.values()):
from .catalog import Catalog
Expand Down

0 comments on commit 2d5fa7b

Please sign in to comment.