Skip to content
Browse files
[processing] API v2 update fix: returns str obj instead of QVariant o…
…ne, it occurs when running Processing headless
  • Loading branch information
slarosa committed Jan 2, 2014
1 parent bb1639c commit dd6dffc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -51,7 +51,7 @@ def __init__(self, fileName, encoding, fields, geometryType,

if encoding is None:
settings = QSettings()
encoding = settings.value('/Processing/encoding', 'System')
encoding = settings.value('/Processing/encoding', 'System', type=str)

if self.fileName.startswith(self.MEMORY_LAYER_PREFIX):
self.isMemory = True
@@ -87,7 +87,7 @@ def getVectorWriter(self, fields, geomType, crs, options=None):

if self.encoding is None:
settings = QSettings()
self.encoding = settings.value('/Processing/encoding', 'System')
self.encoding = settings.value('/Processing/encoding', 'System', type=str)

w = VectorWriter(self.value, self.encoding, fields, geomType,
crs, options)

0 comments on commit dd6dffc

Please sign in to comment.