summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-08-30 08:29:28 -0500
committerJohn Estabrook <jestabro@vyos.io>2021-08-30 11:33:53 -0500
commit417d3dba893b56c66a911f80634d87f2b610a7bd (patch)
tree4f73d0750f4ad6c615af4891913339fbfb50416c /python/vyos
parent0deb1709930f620e97ff9a29afc8a86e950f0758 (diff)
downloadvyos-1x-417d3dba893b56c66a911f80634d87f2b610a7bd.tar.gz
vyos-1x-417d3dba893b56c66a911f80634d87f2b610a7bd.zip
config: T2941: ignore unicode characters, e.g., in description field
(cherry picked from commit 80ee5233aa8245ded09d04f2618a580d5dcc6b46)
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/configsource.py2
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):
"""