summaryrefslogtreecommitdiff
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 08:29:28 -0500
commit80ee5233aa8245ded09d04f2618a580d5dcc6b46 (patch)
treeb7b566ffe436a5bee7a2e773479dc9c5939dfd67
parentcdc717da9f3d8c4ecce7f2117686ab317eb43bb8 (diff)
downloadvyos-1x-80ee5233aa8245ded09d04f2618a580d5dcc6b46.tar.gz
vyos-1x-80ee5233aa8245ded09d04f2618a580d5dcc6b46.zip
config: T2941: ignore unicode characters, e.g., in description field
-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):
"""