From 7966f224b2052bb883155632c4d4c858b265617d Mon Sep 17 00:00:00 2001 From: Valentin Rigal Date: Thu, 30 Apr 2026 11:14:09 +0200 Subject: [PATCH] Duplicated exception in code_review_bot.__init__ --- bot/code_review_bot/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot/code_review_bot/__init__.py b/bot/code_review_bot/__init__.py index a706255fb..0982a24a1 100644 --- a/bot/code_review_bot/__init__.py +++ b/bot/code_review_bot/__init__.py @@ -205,8 +205,7 @@ def hash(self): ), "Github cache repository is mandatory to analyse a github revision" local_repository = settings.git_cache / self.revision.repository_slug else: - raise Exception(self.revision.__class__) - raise NotImplementedError + raise NotImplementedError(self.revision.__class__) # Build the hash only if the file is not autogenerated. # An autogenerated file resides in the build directory that it has the