[REF] Reoarganized imports, catches yaml not found.

bzr revid: jth@openerp.com-20100308085532-1yv9xv1tosz223vs
This commit is contained in:
Julien Thewys
2010-03-08 09:55:32 +01:00
parent 4bc27ab050
commit 546b76d5d3
+7 -2
View File
@@ -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):