Bug report #17148

Processing: python error in ""select by attribute sum"

Added by Giovanni Manghi about 7 years ago. Updated about 7 years ago.

Status:Closed
Priority:Normal
Assignee:Victor Olaya
Category:Processing/QGIS
Affected QGIS version:2.18.12 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:25047

Description

Seen in 2.18.12, the tool does not seems to have been ported in master (maybe by choice).

2017-09-15T11:14:43 2 Uncaught error while executing algorithm
Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/processing/core/GeoAlgorithm.py", line 203, in execute
self.processAlgorithm(progress)
File "/usr/share/qgis/python/plugins/processing/algs/qgis/SelectByAttributeSum.py", line 69, in processAlgorithm
ft = layer.selectedFeatures()[0]
IndexError: list index out of range

Associated revisions

Revision 59904fbf
Added by Alexander Bruy about 7 years ago

[processing] correctly raise exception (fix #17148)

History

#1 Updated by Harrissou Santanna about 7 years ago

Giovanni Manghi wrote:

Seen in 2.18.12, the tool does not seems to have been ported in master (maybe by choice).

For reference, see https://lists.osgeo.org/pipermail/qgis-developer/2017-September/049673.html

#2 Updated by Giovanni Manghi about 7 years ago

For reference, see https://lists.osgeo.org/pipermail/qgis-developer/2017-September/049673.html

thanks I had forgot that thread. So maybe this instead of a ticket to remind for a fix should be a ticket to remind to remove the tool also in 2.18...

#3 Updated by Alexander Bruy about 7 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF