From a74a26a113de020ce7ceb94b76bb129c9f4963bb Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Fri, 12 Mar 2010 13:31:06 +0100 Subject: [PATCH] [IMP] addons: create a warning log to inform the user/developper that there is a missing description file bzr revid: stephane@openerp.com-20100312123106-098u2qvczg6zxwjb --- bin/addons/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/addons/__init__.py b/bin/addons/__init__.py index b8b44315d1c..5a08c21002a 100644 --- a/bin/addons/__init__.py +++ b/bin/addons/__init__.py @@ -41,6 +41,8 @@ import base64 from zipfile import PyZipFile, ZIP_DEFLATED from cStringIO import StringIO +import logging + logger = netsvc.Logger() @@ -303,7 +305,8 @@ def load_information_from_description_file(module): if os.path.isfile(description_file): return eval(tools.file_open(description_file).read()) - raise Exception('The module %s does not contain a description file: __openerp__.py or __terp__.py (deprecated)' % module) + logging.warning('The module %s does not contain a description file: __openerp__.py or __terp__.py (deprecated)' % module) + return {} def get_modules_with_version(): modules = get_modules()