Bug report #19798
voronoi.py swallows exceptions
|Affected QGIS version:||3.3(master)||Regression?:||No|
|Operating System:||Easy fix?:||Yes|
|Pull Request or Patch supplied:||Yes||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||27623|
On line 362 of voronoi.py, there is the line `except Exception as err:` which is used to swallow all exceptions thrown in the method `voronoi`. This is generally a bad idea and and is making my life a lot harder while debugging an issue I'm having with the Voronoi Polygons geometry tool.
My suggested fix is to remove this try/except block so that exceptions can propagate up the stack freely. It may be better to instead modify the expect statement to catch only some relevant exceptions that actually should be ignored.