Skip to content

Commit 17510f0

Browse files
committedOct 18, 2016
[processing] Fix handling of None shapeEncoding
Fixes #15719 -- object of type 'NoneType' has no len()
1 parent a4c5509 commit 17510f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def getConsoleCommands(self):
210210
arguments = []
211211
arguments.append('-progress')
212212
arguments.append('--config PG_USE_COPY YES')
213-
if len(shapeEncoding) > 0:
213+
if shapeEncoding:
214214
arguments.append('--config')
215215
arguments.append('SHAPE_ENCODING')
216216
arguments.append('"' + shapeEncoding + '"')

0 commit comments

Comments
 (0)
Please sign in to comment.