Skip to content

Commit

Permalink
[processing] Fix exception in algorithm locator filter if an
Browse files Browse the repository at this point in the history
algorithm has no group set

The group isn't mandatory
  • Loading branch information
nyalldawson committed Feb 2, 2021
1 parent ac1c5c7 commit 46dbd8b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/plugins/processing/gui/AlgorithmLocatorFilter.py
Expand Up @@ -87,7 +87,9 @@ def fetchResults(self, string, context, feedback):

string = string.lower()
tagScore = 0
tags = [*a.tags(), a.provider().name(), a.group()]
tags = [*a.tags(), a.provider().name()]
if a.group():
tags.append(a.group())

for t in tags:
if string in t.lower():
Expand Down Expand Up @@ -176,7 +178,9 @@ def fetchResults(self, string, context, feedback):

string = string.lower()
tagScore = 0
tags = [*a.tags(), a.provider().name(), a.group()]
tags = [*a.tags(), a.provider().name()]
if a.group():
tags.append(a.group())

for t in tags:
if string in t.lower():
Expand Down

0 comments on commit 46dbd8b

Please sign in to comment.