Excluded from coverage the fatal case case when python-yaml isn't installed.
This commit is contained in:
parent
53be46e1fe
commit
bb6bae95a2
|
|
@ -15,7 +15,7 @@ logger = log.get_logger(__name__)
|
|||
|
||||
try:
|
||||
import yaml
|
||||
except ImportError:
|
||||
except ImportError: # pragma: no cover
|
||||
log.init(False, False)
|
||||
logger.error('No yaml module for Python, install python3-yaml')
|
||||
sys.exit(misc.NO_YAML_MODULE)
|
||||
|
|
|
|||
Loading…
Reference in New Issue