mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-03 00:14:12 -05:00
wrap decode stdout with try-except
This commit is contained in:
parent
2b2f0eb642
commit
a632932b09
@ -387,7 +387,7 @@ class Grass7Utils:
|
||||
def readline_with_recover(stdout):
|
||||
"""A method wrapping stdout.readline() with try-except.
|
||||
This is a workaround for decoding stdout from GRASS cmd
|
||||
because there are enviroments where it is difficult to avoid UnicodeDecodeError.
|
||||
because there are environments where it is difficult to avoid UnicodeDecodeError.
|
||||
|
||||
Args:
|
||||
stdout: io.TextIOWrapper - proc.stdout
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user