Describe the bug
when selecting a feature the error occurs while populating the village details (cattle pop)
Note: same error occurs twice at the same time.
error occurs while populating the Location tab details
Expected behavior
Location details (cattle pop) to be populated.
Screenshots
Desktop (please complete the following information):
OS Name and Version : Windows 11
QGIS Version: 3.22
Additional context
2023-02-23T12:18:12 WARNING Traceback (most recent call last):
File "C:\Users/atree/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_home_dockwidget.py", line 197, in on_change_in_combos
self.resetVillageDetails()
File "C:\Users/atree/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_home_dockwidget.py", line 183, in resetVillageDetails
self.activeLDict = self.vlgsel_cascade.popCattlePopulation()
File "C:\Users/atree/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_village_cascade_widget.py", line 328, in popCattlePopulation
if dn is None:
UnboundLocalError: local variable 'dn' referenced before assignment
2023-02-23T12:18:12 WARNING Traceback (most recent call last):
File "C:\Users/atree/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_home_dockwidget.py", line 143, in on_change_in_aoi
self.resetVillageDetails()
File "C:\Users/atree/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_home_dockwidget.py", line 183, in resetVillageDetails
self.activeLDict = self.vlgsel_cascade.popCattlePopulation()
File "C:\Users/atree/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_village_cascade_widget.py", line 328, in popCattlePopulation
if dn is None:
UnboundLocalError: local variable 'dn' referenced before assignment
Describe the bug when selecting a feature the error occurs while populating the village details (cattle pop) Note: same error occurs twice at the same time.
To Reproduce If using a custom shapefile please upload ZIP of the same to project google drive folder GISLayers and add link below. https://drive.google.com/drive/u/0/folders/12MAMLNbiXL7I04tNWFEP73CPNk6eWNIp
Steps to reproduce the behavior:
Expected behavior Location details (cattle pop) to be populated.
Screenshots
Desktop (please complete the following information):
Additional context 2023-02-23T12:18:12 WARNING Traceback (most recent call last): File "C:\Users/atree/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_home_dockwidget.py", line 197, in on_change_in_combos self.resetVillageDetails() File "C:\Users/atree/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_home_dockwidget.py", line 183, in resetVillageDetails self.activeLDict = self.vlgsel_cascade.popCattlePopulation() File "C:\Users/atree/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_village_cascade_widget.py", line 328, in popCattlePopulation if dn is None: UnboundLocalError: local variable 'dn' referenced before assignment
2023-02-23T12:18:12 WARNING Traceback (most recent call last): File "C:\Users/atree/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_home_dockwidget.py", line 143, in on_change_in_aoi self.resetVillageDetails() File "C:\Users/atree/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_home_dockwidget.py", line 183, in resetVillageDetails self.activeLDict = self.vlgsel_cascade.popCattlePopulation() File "C:\Users/atree/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\jaltol\gui\jt_village_cascade_widget.py", line 328, in popCattlePopulation if dn is None: UnboundLocalError: local variable 'dn' referenced before assignment