mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] Fix handling of None shapeEncoding
Fixes #15719 -- object of type 'NoneType' has no len()
This commit is contained in:
parent
f0f70a5d9a
commit
2fc418016f
@ -211,7 +211,7 @@ class Ogr2OgrToPostGisList(GdalAlgorithm):
|
||||
arguments = []
|
||||
arguments.append('-progress')
|
||||
arguments.append('--config PG_USE_COPY YES')
|
||||
if len(shapeEncoding) > 0:
|
||||
if shapeEncoding:
|
||||
arguments.append('--config')
|
||||
arguments.append('SHAPE_ENCODING')
|
||||
arguments.append('"' + shapeEncoding + '"')
|
||||
|
Loading…
x
Reference in New Issue
Block a user