tomchadwin / web2qgis

QGIS webmap scraper
GNU General Public License v2.0
15 stars 2 forks source link

AttributeError: 'NoneType' object has no attribute 'split' #23

Open cbertelli opened 4 years ago

cbertelli commented 4 years ago

Hello Tom, thank you for the good idea and thanks a lot for the time spent on this plugin. I found this issue on a leaflet map here: https://www.laboratoriovalsusa.it/aziende The map was correctly detected, but saving it, the plugin stopped with this error. I'm probably not able to fix it by myself. Sorry.

 AttributeError: 'NoneType' object has no attribute 'split'
Traceback (most recent call last):
  File "/Users/carlo/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/web2qgis/web2qgis_dialog.py", line 87, in getMap
    getLeafletMap(self.mainframe, self.iface)
  File "/Users/carlo/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/web2qgis/leafletReader.py", line 54, in getLeafletMap
    getLeafletView(scriptFolder, mainframe, iface)
  File "/Users/carlo/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/web2qgis/leafletReader.py", line 59, in getLeafletView
    xMin, yMin, xMax, yMax = extent.split(",")
AttributeError: 'NoneType' object has no attribute 'split'
tomchadwin commented 4 years ago

I don't get any error or imported map at all. Like you, it detects the map, but then when I click Save, I get nothing. Odd.

mnoorchenar commented 3 years ago

I have the same problem!