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 f0f70a5 commit 2fc418016f7463fbae2dd730ed3701ef57df429e
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/algs/gdal/ogr2ogrtopostgislist.py
@@ -211,7 +211,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 2fc4180

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