Skip to content

Commit b2d31ce

Browse files
authoredOct 12, 2022
Skip value_opts expansion when an empty list is provided (#91)
1 parent 7384b3d commit b2d31ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/running/modifier.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(self, value_opts=None, **kwargs):
1818
self.__original_kwargs = kwargs
1919
self._kwargs = copy.deepcopy(kwargs)
2020
self.excludes = kwargs.get("excludes", {})
21-
if self.value_opts is not None:
21+
if self.value_opts: # Neither None nor empty
2222
# Expand value opts
2323
for k, v in kwargs.items():
2424
if type(v) is not str:

0 commit comments

Comments
 (0)
Please sign in to comment.