mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
improve ImportError verbosity for yaml
This commit is contained in:
@@ -5,8 +5,11 @@
|
|||||||
# precompiled and thus message generation will be much faster
|
# precompiled and thus message generation will be much faster
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import yaml
|
|
||||||
import errno
|
import errno
|
||||||
|
try:
|
||||||
|
import yaml
|
||||||
|
except ImportError:
|
||||||
|
raise ImportError("Failed to import yaml. You may need to install it with 'sudo pip install pyyaml")
|
||||||
|
|
||||||
import genmsg.msgs
|
import genmsg.msgs
|
||||||
import gencpp
|
import gencpp
|
||||||
|
|||||||
Reference in New Issue
Block a user