atreebangalore / jaltol

a QGIS python plugin to make typology-specific Rural Water Security Plans. These plans help lead the user from data to decisions
MIT License
4 stars 3 forks source link

SPS - Bhikangaon village - Location details population error #11

Open balakumaran247 opened 1 year ago

balakumaran247 commented 1 year ago

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:

  1. load the Bhikangaon village shapefile
  2. select a feature
  3. error occurs while populating the Location tab details

Expected behavior Location details (cattle pop) to be populated.

Screenshots image

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