qgis-plugin
qgis-plugin copied to clipboard
Type error for setting variables
When using some project from python client tests, on sync I got
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Traceback (most recent call last):
File "/home/saber/.local/share/QGIS/QGIS3/profiles/default/python/plugins/Mergin/plugin.py", line 94, in set_project_variables
if path == QgsProject.instance().absolutePath() or path + '/' in QgsProject.instance().absolutePath():
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Python version: 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0]
QGIS version: 3.14.16-Pi Pi, a235a149f0
It looks like it is caused by entries like this one in QGIS3.ini which will set the path
variable to None:
localProjects\saber\test10\path=@Invalid()
But it's unclear how do we get to a point where we set path to invalid QVariant...