Skip to content

Commit

Permalink
fix(translatableError): add missing return to __repr__
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasschaub committed Aug 27, 2024
1 parent 756ee16 commit e55f3e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sketch_map_tool/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -71,3 +71,7 @@ class CustomFileNotFoundError(TranslatableError):

class CustomFileDoesNotExistAnymoreError(TranslatableError):
pass


class MarkingDetectionError(TranslatableError):
pass

0 comments on commit e55f3e3

Please sign in to comment.