This happens if a user try to render a layer without any fields.
'''
2018-07-26T18:32:09 WARNING Traceback (most recent call last):
File "/home/aneto/.local/share/QGIS/QGIS3/profiles/default/python/plugins/milstd2525/renderer.py", line 141, in createRendererWidget
return MilStd2525RendererWidget(layer, style, renderer)
File "/home/aneto/.local/share/QGIS/QGIS3/profiles/default/python/plugins/milstd2525/renderer.py", line 110, in init
self.r = MilStd2525Renderer(field = fields[0])
IndexError: list index out of range
'''
Would be nice to try escape the python error and send a message to the user instead.
This happens if a user try to render a layer without any fields.
''' 2018-07-26T18:32:09 WARNING Traceback (most recent call last): File "/home/aneto/.local/share/QGIS/QGIS3/profiles/default/python/plugins/milstd2525/renderer.py", line 141, in createRendererWidget return MilStd2525RendererWidget(layer, style, renderer) File "/home/aneto/.local/share/QGIS/QGIS3/profiles/default/python/plugins/milstd2525/renderer.py", line 110, in init self.r = MilStd2525Renderer(field = fields[0]) IndexError: list index out of range '''
Would be nice to try escape the python error and send a message to the user instead.