diff --git a/github_connector/__manifest__.py b/github_connector/__manifest__.py index 902d296d..0505d222 100644 --- a/github_connector/__manifest__.py +++ b/github_connector/__manifest__.py @@ -5,7 +5,7 @@ { 'name': 'Github Connector', 'summary': 'Synchronize information from Github repositories', - 'version': '11.0.1.1.0', + 'version': '11.0.1.1.1', 'category': 'Connector', 'license': 'AGPL-3', 'author': diff --git a/github_connector/models/github_repository_branch.py b/github_connector/models/github_repository_branch.py index 76f89b47..79870db1 100644 --- a/github_connector/models/github_repository_branch.py +++ b/github_connector/models/github_repository_branch.py @@ -222,15 +222,21 @@ def _analyze_code(self): "Warning Folder %s not found: Analysis skipped." % path) else: _logger.info("Analyzing Source Code in %s ..." % path) - vals = branch.analyze_code_one(branch) - vals.update({ - 'last_analyze_date': datetime.today(), - 'state': 'analyzed', - }) - # Mark the branch as analyzed - branch.write(vals) - if partial_commit: - self._cr.commit() # pylint: disable=invalid-commit + try: + vals = branch.analyze_code_one(branch) + vals.update({ + 'last_analyze_date': datetime.today(), + 'state': 'analyzed', + }) + # Mark the branch as analyzed + branch.write(vals) + if partial_commit: + self._cr.commit() # pylint: disable=invalid-commit + + except Exception as e: + _logger.warning( + 'Cannot analyze branch %s so skipping it, error ' + 'is: %s' % (branch.name, e)) return True # Compute Section