Skip to content

Commit 60571ba

Browse files
committed
Fixed a KeyError into _IterObject._is_valid.
1 parent 122fd69 commit 60571ba

File tree

1 file changed

+2
-1
lines changed
  • addons/source-python/packages/source-python/filters

1 file changed

+2
-1
lines changed

addons/source-python/packages/source-python/filters/iterator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def _is_valid(self, item):
7373
for filter_name in self.is_filters:
7474

7575
# Does the item pass this filter?
76-
if not self._filters[filter_name](item):
76+
if (filter_name not in self._filters or not
77+
self._filters[filter_name](item)):
7778

7879
# If not, return False
7980
return False

0 commit comments

Comments
 (0)