Skip to content

Commit

Permalink
mavproxy.py: correct printing of shlex exception
Browse files Browse the repository at this point in the history
message is not an attribute of e
  • Loading branch information
peterbarker authored and tridge committed May 15, 2024
1 parent 0de7724 commit 996213c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MAVProxy/mavproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 996213c

Please # to comment.