From 1f4d9423a91069ec69dd640b021e0e860956a58b Mon Sep 17 00:00:00 2001 From: TimStallard Date: Wed, 30 Jan 2019 18:32:16 +0000 Subject: [PATCH] Fix handling of non-ascii chars in bird output --- lg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lg.py b/lg.py index b9a65ee..43156c2 100644 --- a/lg.py +++ b/lg.py @@ -314,7 +314,7 @@ def detail(hosts, proto=app.config.get("PROTO_DEFAULT", "ipv4")): errors.append("%s: bird command failed with error, %s" % (host, "\n".join(res))) continue - detail[host] = {"status": res[1], "description": add_links(res[2:])} + detail[host] = {"status": res[1], "description": add_links(res[2:]).decode("utf-8")} return render_template('detail.html', detail=detail, command=command, errors=errors)