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 f0f70a5 commit 2fc4180
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 + '"')
Expand Down

0 comments on commit 2fc4180

Please sign in to comment.