improve ImportError verbosity for yaml

This commit is contained in:
TSC21 2018-09-11 17:01:32 +01:00 committed by Beat Küng
parent 43f78705ab
commit 8efb2bbe10
1 changed files with 4 additions and 1 deletions

View File

@ -5,8 +5,11 @@
# precompiled and thus message generation will be much faster
import os
import yaml
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 gencpp