piMoll / swissgeodownloader

QGIS Plugin for downloading swiss geodata
https://pimoll.github.io/swissgeodownloader/
GNU General Public License v2.0
9 stars 2 forks source link

Error when clicking the refresh button #8

Closed merlebleue closed 1 year ago

merlebleue commented 1 year ago

Hello ! Thank you very much for your plugin, which seems very usefull. I get this error when I click on the refresh button, any idea why ?

I have no problem loading the basemap in grey

IndexError: list index out of range

             Traceback (most recent call last):
              File "C:\Users/Julien.Ars/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\swissgeodownloader\api\apiCallerTask.py", line 55, in run
              self.output = self.apiRef.getDatasetList(self)
              File "C:\Users/Julien.Ars/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\swissgeodownloader\api\datageoadmin.py", line 76, in getDatasetList
              dataset.licenseLink = [link['href'] for link in ds['links']
             IndexError: list index out of range
piMoll commented 1 year ago

Hello! Thanks very much for the report. I already fixed this bug and uploaded a new plugin version to the QGIS repository. It is currently being checked and will soon be available. I guess next monday you should be able to update.

merlebleue commented 1 year ago

Perfect ! Thank you very much :)

merlebleue commented 1 year ago

Yep, installing the new ersion from github solves the problem. Thank you very much !