Skip to content


[processing] API v2 update fix: returns str obj instead of QVariant o…
Browse files Browse the repository at this point in the history
…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.
2 changes: 1 addition & 1 deletion python/plugins/processing/core/
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/outputs/
Expand Up @@ -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)
Expand Down

0 comments on commit dd6dffc

Please sign in to comment.