From ca097fc9fe8b0d43b9492689e2c860c9ab9bcab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sat, 9 Dec 2023 16:29:45 +0100 Subject: [PATCH] Fix rendering of OdooSeriesNotDtected exceptions --- src/oca_github_bot/manifest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/oca_github_bot/manifest.py b/src/oca_github_bot/manifest.py index 6589b713..b2a7ef5a 100644 --- a/src/oca_github_bot/manifest.py +++ b/src/oca_github_bot/manifest.py @@ -30,7 +30,8 @@ class NoManifestFound(Exception): class OdooSeriesNotDetected(Exception): - pass + def __init__(self, msg): + super().__init__(msg or "Odoo series could not be detected") def is_addons_dir(addons_dir, installable_only=False):