From 817b65353e3cf11978a8f16924178a0d5c41428a Mon Sep 17 00:00:00 2001 From: Neha Date: Sat, 27 Oct 2018 14:15:37 +0000 Subject: [PATCH] fix issue with no db name supplied --- flectra/tools/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flectra/tools/config.py b/flectra/tools/config.py index 71a50f08..c1957ed7 100644 --- a/flectra/tools/config.py +++ b/flectra/tools/config.py @@ -636,7 +636,7 @@ class configmanager(object): except OSError: logging.getLogger(__name__).debug('Failed to create addons data dir %s', d) try: - if not os.listdir(os.path.join(d)): + if self.get('db_name') and not os.listdir(os.path.join(d)): from flectra.sql_db import db_connect with closing(db_connect(self.get('db_name')).cursor()) as cr: if flectra.tools.table_exists(cr, 'ir_module_module'):