Skip to content

Commit dd6dffc

Browse files
committedJan 2, 2014
[processing] API v2 update fix: returns str obj instead of QVariant one, it occurs when running Processing headless
1 parent bb1639c commit dd6dffc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎python/plugins/processing/core/VectorWriter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(self, fileName, encoding, fields, geometryType,
5151

5252
if encoding is None:
5353
settings = QSettings()
54-
encoding = settings.value('/Processing/encoding', 'System')
54+
encoding = settings.value('/Processing/encoding', 'System', type=str)
5555

5656
if self.fileName.startswith(self.MEMORY_LAYER_PREFIX):
5757
self.isMemory = True

‎python/plugins/processing/outputs/OutputVector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def getVectorWriter(self, fields, geomType, crs, options=None):
8787

8888
if self.encoding is None:
8989
settings = QSettings()
90-
self.encoding = settings.value('/Processing/encoding', 'System')
90+
self.encoding = settings.value('/Processing/encoding', 'System', type=str)
9191

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

0 commit comments

Comments
 (0)
Please sign in to comment.