From f315f8e809f35955ec854409f2effd1151e1f01e Mon Sep 17 00:00:00 2001 From: David Beal Date: Mon, 8 Jul 2019 12:42:36 +0200 Subject: [PATCH] IMP exception message --- module_analysis/models/ir_module_module.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module_analysis/models/ir_module_module.py b/module_analysis/models/ir_module_module.py index 68fef96d2..35fcf9597 100644 --- a/module_analysis/models/ir_module_module.py +++ b/module_analysis/models/ir_module_module.py @@ -106,10 +106,11 @@ class IrModuleModule(models.Model): values = self._prepare_values_from_json(json_res) module.write(values) - except Exception: + except Exception as e: _logger.warning( - 'Failed to execute the cloc command on module %s' % ( - module.name)) + 'Failed to execute the cloc command on module %s\n' + 'Exception occured: %s' % ( + module.name, e)) @api.model def _get_analyzed_languages(self):