Skip to content

Commit

Permalink
Properly check whether dataframe is empty (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
andersy005 authored Nov 4, 2021
1 parent f9330d4 commit 9198159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intake_esm/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def search(
results = search(
df=self.df, query=_query.query, columns_with_iterables=self.columns_with_iterables
)
if _query.require_all_on is not None and results:
if _query.require_all_on is not None and not results.empty:
results = search_apply_require_all_on(
df=results, query=_query.query, require_all_on=_query.require_all_on
)
Expand Down

0 comments on commit 9198159

Please # to comment.