Skip to content


Browse files Browse the repository at this point in the history
[processing] fixed usage of filter function in vector.features
  • Loading branch information
volaya committed Jan 9, 2017
1 parent d35830b commit 1500ead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/tools/
Expand Up @@ -126,9 +126,9 @@ def filterFeature(f, ignoreInvalid):
return True

if invalidFeaturesMethod == self.IGNORE:
self.iter = filter(filterFeature, self.iter, True)
self.iter = filter(lambda x: filterFeature(x, True), self.iter)
elif invalidFeaturesMethod == self.RAISE_EXCEPTION:
self.iter = filter(filterFeature, self.iter, False)
self.iter = filter(lambda x: filterFeature(x, False), self.iter)

def __iter__(self):
return self.iter
Expand Down

1 comment on commit 1500ead

Copy link

@rldhont rldhont commented on 1500ead Jan 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build fail:

Traceback (most recent call last):
  File "/home/travis/build/qgis/QGIS/python/plugins/processing/tests/", line 110, in testFeatures
AssertionError: None

Please sign in to comment.