I fixed the (missing) quote character (quotechar) when creating a CSV .
The original code leads to
2023-05-16T13:08:37 WARNING Traceback (most recent call last):
File "/home/paolo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/LecoS/lecos_dlg.py", line 425, in accept
func.saveToCSV(res,res_tit,dataPath)
File "/home/paolo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/LecoS/lecos_functions.py", line 68, in saveToCSV
writer = csv.writer(f,delimiter=';',quotechar="",quoting=csv.QUOTE_NONE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: "quotechar" must be a 1-character string
I fixed the (missing) quote character (quotechar) when creating a CSV . The original code leads to
2023-05-16T13:08:37 WARNING Traceback (most recent call last): File "/home/paolo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/LecoS/lecos_dlg.py", line 425, in accept func.saveToCSV(res,res_tit,dataPath) File "/home/paolo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/LecoS/lecos_functions.py", line 68, in saveToCSV writer = csv.writer(f,delimiter=';',quotechar="",quoting=csv.QUOTE_NONE) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: "quotechar" must be a 1-character string
and no CSV file is created.