From cde92851b85fec2c7b25046b389de3f668821209 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 10 May 2024 12:57:22 +1000 Subject: [PATCH] mavproxy.py: correct printing of shlex exception message is not an attribute of e --- MAVProxy/mavproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAVProxy/mavproxy.py b/MAVProxy/mavproxy.py index da7383309e..88a3ccf9d4 100644 --- a/MAVProxy/mavproxy.py +++ b/MAVProxy/mavproxy.py @@ -753,7 +753,7 @@ def process_stdin(line): try: args = shlex_quotes(line) except Exception as e: - print("Caught shlex exception: %s" % e.message); + print("Caught shlex exception: %s" % str(e)); return # strip surrounding quotes - shlex leaves them in place