mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 00:30:50 +08:00
mavlink_{shell,ulog_streaming}.py: show full error output when pymavlink import fails
This commit is contained in:
1 parent
fa461d018d
commit
587c5161a3
2 files changed
+5
-3
No files matched your search
@@ -18,7 +18,8 @@ try:
|
||||
except:
|
||||
print("Failed to import pymavlink.")
|
||||
print("You may need to install it with 'pip install pymavlink pyserial'")
|
||||
exit(-1)
|
||||
print("")
|
||||
raise
|
||||
from argparse import ArgumentParser
|
||||
|
||||
|
||||
|
||||
@@ -17,8 +17,9 @@ try:
|
||||
from pymavlink import mavutil
|
||||
except:
|
||||
print("Failed to import pymavlink.")
|
||||
print("You may need to install it with 'pip install pymavlink'")
|
||||
exit(-1)
|
||||
print("You may need to install it with 'pip install pymavlink pyserial'")
|
||||
print("")
|
||||
raise
|
||||
from argparse import ArgumentParser
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user