Skip to content

Commit

Permalink
Replace fstring
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 21, 2021
1 parent 0073ab7 commit 6a83a2f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -111,7 +111,7 @@ def processAlgorithm(self, parameters, context, feedback):
for field_name in category_field_names:
c = source.fields().lookupField(field_name)
if c == -1:
raise QgsProcessingException(self.tr(f'Field "{field_name}" does not exist.'))
raise QgsProcessingException(self.tr('Field "{field_name}" does not exist.').format(field_name=field_name))
category_field_indexes.append(c)
fields.append(source.fields().at(c))

Expand Down

0 comments on commit 6a83a2f

Please sign in to comment.