[QGIS-Developer] QGIS error when connected to signal newProjectCreated

Stefan Keller sfkeller at gmail.com
Fri Oct 13 02:12:52 PDT 2017


This message was sent by Martin Boos (but seems to have been rejected
currently):

Hi devs

I’m trying to handle the signal ‘newProjectCreated’ in my python
plugin. Unfortunately, every time this event occurs, a python error is
thrown:

Traceback (most recent call last):
File "C:/Users/Martin/.qgis2/python/plugins\Vector-Tiles-Reader-QGIS-Plugin\vtr_plugin.py",
line 88, in _on_new_qgis_project_created
pass
TypeError: 'NoneType' object is not callable

Funny thing is, this happens even if my handler is empty:

    def _on_new_qgis_project_created(self):
        pass


Any ideas how to solve this?

Thanks and best regards
Martin


More information about the QGIS-Developer mailing list