GIScience / orstools-qgis-plugin

Plugin for QGIS with a set of tools to use openrouteservice API´s, based on openstreetmap
https://plugins.qgis.org/plugins/ORStools/
MIT License
91 stars 31 forks source link

Error in exception handling of batch lines with +50 waypoints #136

Closed TheGreatRefrigerator closed 3 years ago

TheGreatRefrigerator commented 3 years ago

Here's what I did

Use a line layer with over 50 waypoints


Here's what I got

ORStools/proc/directions_lines_proc.py", line 242, in processAlgorithm
              msg = f"Feature ID {line[source_field_name]} caused a {e.__class__.__name__}:\n{str(e)}"
             TypeError: list indices must be integers or slices, not str

Here's what I was expecting

handled error


Here's what I think could be improved

koebi commented 3 years ago

This has been fixed in 2858341b.