diff options
author | John Estabrook <jestabro@vyos.io> | 2021-08-30 08:29:28 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2021-08-30 11:33:53 -0500 |
commit | 417d3dba893b56c66a911f80634d87f2b610a7bd (patch) | |
tree | 4f73d0750f4ad6c615af4891913339fbfb50416c | |
parent | 0deb1709930f620e97ff9a29afc8a86e950f0758 (diff) | |
download | vyos-1x-417d3dba893b56c66a911f80634d87f2b610a7bd.tar.gz vyos-1x-417d3dba893b56c66a911f80634d87f2b610a7bd.zip |
config: T2941: ignore unicode characters, e.g., in description field
(cherry picked from commit 80ee5233aa8245ded09d04f2618a580d5dcc6b46)
-rw-r--r-- | python/vyos/configsource.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/configsource.py b/python/vyos/configsource.py index 50222e385..b0981d25e 100644 --- a/python/vyos/configsource.py +++ b/python/vyos/configsource.py @@ -161,7 +161,7 @@ class ConfigSourceSession(ConfigSource): if p.returncode != 0: raise VyOSError() else: - return out.decode('ascii') + return out.decode('ascii', 'ignore') def set_level(self, path): """ |