diff --git a/bin/tools/yaml_import.py b/bin/tools/yaml_import.py index 2c334c9cd3c..9632842bc80 100644 --- a/bin/tools/yaml_import.py +++ b/bin/tools/yaml_import.py @@ -1,15 +1,20 @@ # -*- encoding: utf-8 -*- import types -import yaml import time # used to eval time.strftime expressions import logging import pooler import netsvc import misc - from config import config +try: + import yaml +except ImportError, e: + msg = "Module yaml was not found." + e.args = (msg,) + raise e + logger_channel = 'tests' class YamlImportException(Exception):