diff options
| author | Stephane Wirtel <stephane@openerp.com> | 2010-03-12 13:31:06 +0100 |
|---|---|---|
| committer | Stephane Wirtel <stephane@openerp.com> | 2010-03-12 13:31:06 +0100 |
| commit | a74a26a113de020ce7ceb94b76bb129c9f4963bb (patch) | |
| tree | 372066c4ffbeb39b55e7e441abdc9178798c2fdd /bin/addons/__init__.py | |
| parent | 4eadbbf6c6b5a6dd3536caf8559e1f9f68abac14 (diff) | |
[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
Diffstat (limited to 'bin/addons/__init__.py')
| -rw-r--r-- | bin/addons/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
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() |
