Skip to content
Permalink
Browse files

Replace fstring

  • Loading branch information
m-kuhn committed Apr 21, 2021
1 parent 0073ab7 commit 6a83a2f6760287bfeff09b36f29470f022baad16
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/qgis/StatisticsByCategories.py
@@ -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))

0 comments on commit 6a83a2f

Please sign in to comment.