wrap decode stdout with try-except

This commit is contained in:
Kanahiro 2022-07-03 14:17:55 +09:00
parent 2b2f0eb642
commit a632932b09

View File

@ -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