Skip to content

Commit

Permalink
[processing] Fix handling of None shapeEncoding
Browse files Browse the repository at this point in the history
Fixes #15719 -- object of type 'NoneType' has no len()
  • Loading branch information
strk committed Oct 18, 2016
1 parent a4c5509 commit 17510f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 + '"')
Expand Down

0 comments on commit 17510f0

Please sign in to comment.