Skip to content

Commit

Permalink
fix blacklist/whitelist not working without whitelist being used
Browse files Browse the repository at this point in the history
  • Loading branch information
zeptofine committed Dec 1, 2023
1 parent a3d0fdb commit 2f21e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imdataset_creator/datarules/data_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def __init__(

self.whitelist: list[str] | None = whitelist
self.blacklist: list[str] | None = blacklist
if not self.whitelist or self.blacklist:
if not (self.whitelist or self.blacklist):
raise EmptyListsError()
exprs: list[Expr] = []
if self.whitelist:
Expand Down

0 comments on commit 2f21e0d

Please sign in to comment.