Skip to content

Commit 2fc4180

Browse files
committed
[processing] Fix handling of None shapeEncoding
Fixes #15719 -- object of type 'NoneType' has no len()
1 parent f0f70a5 commit 2fc4180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/processing/algs/gdal/ogr2ogrtopostgislist.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def getConsoleCommands(self):
211211
arguments = []
212212
arguments.append('-progress')
213213
arguments.append('--config PG_USE_COPY YES')
214-
if len(shapeEncoding) > 0:
214+
if shapeEncoding:
215215
arguments.append('--config')
216216
arguments.append('SHAPE_ENCODING')
217217
arguments.append('"' + shapeEncoding + '"')

0 commit comments

Comments
 (0)