forked from Archive/PX4-Autopilot
mavlink_{shell,ulog_streaming}.py: show full error output when pymavlink import fails
This commit is contained in:
parent
fa461d018d
commit
587c5161a3
|
@ -18,7 +18,8 @@ try:
|
||||||
except:
|
except:
|
||||||
print("Failed to import pymavlink.")
|
print("Failed to import pymavlink.")
|
||||||
print("You may need to install it with 'pip install pymavlink pyserial'")
|
print("You may need to install it with 'pip install pymavlink pyserial'")
|
||||||
exit(-1)
|
print("")
|
||||||
|
raise
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,9 @@ try:
|
||||||
from pymavlink import mavutil
|
from pymavlink import mavutil
|
||||||
except:
|
except:
|
||||||
print("Failed to import pymavlink.")
|
print("Failed to import pymavlink.")
|
||||||
print("You may need to install it with 'pip install pymavlink'")
|
print("You may need to install it with 'pip install pymavlink pyserial'")
|
||||||
exit(-1)
|
print("")
|
||||||
|
raise
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue