From e55f3e393e4a64754fb6fa49331d25afa4f13617 Mon Sep 17 00:00:00 2001 From: Matthias Schaub Date: Tue, 27 Aug 2024 10:07:48 +0200 Subject: [PATCH] fix(translatableError): add missing return to __repr__ --- sketch_map_tool/exceptions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sketch_map_tool/exceptions.py b/sketch_map_tool/exceptions.py index fde6416a..bdd01475 100644 --- a/sketch_map_tool/exceptions.py +++ b/sketch_map_tool/exceptions.py @@ -16,7 +16,7 @@ def __init__(self, message: str, params: dict | None = None, *args): super().__init__(message, *args) def __repr__(self): - self._repr(translate=False) + return self._repr(translate=False) def _repr(self, translate: bool): if not self.args: @@ -71,3 +71,7 @@ class CustomFileNotFoundError(TranslatableError): class CustomFileDoesNotExistAnymoreError(TranslatableError): pass + + +class MarkingDetectionError(TranslatableError): + pass