Skip to content
Permalink
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 dd6dffcb89975e4ac66b25cb9f0b5567d46791e6
@@ -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.
You can’t perform that action at this time.