Skip to content
Permalink
Browse files

[processing] Fix handling of None shapeEncoding

Fixes #15719 -- object of type 'NoneType' has no len()
  • Loading branch information
strk committed Oct 18, 2016
1 parent a4c5509 commit 17510f095202776c5a050e8b3dd2d1b63133e9ef
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/gdal/ogr2ogrtopostgislist.py
@@ -210,7 +210,7 @@ def getConsoleCommands(self):
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 + '"')

0 comments on commit 17510f0

Please sign in to comment.
You can’t perform that action at this time.