[REF] Reoarganized imports, catches yaml not found.
bzr revid: jth@openerp.com-20100308085532-1yv9xv1tosz223vs
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user