From fbd334a0b26bc1a922b22ccfa882bb05f314fadf Mon Sep 17 00:00:00 2001 From: yishai Date: Sun, 3 Sep 2023 14:23:50 +0300 Subject: [PATCH] fix(api texts): error code for no translation. --- api/api_warnings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/api_warnings.py b/api/api_warnings.py index 586802a664..7c8b5ccb44 100644 --- a/api/api_warnings.py +++ b/api/api_warnings.py @@ -8,6 +8,7 @@ class APIWarningCode(Enum): APINoVersion = 101 APINoLanguageVersion = 102 APINoSourceText = 103 + APINoTranslationText = 104 """ classes for data warnings in API calls. @@ -57,5 +58,5 @@ def __init__(self, oref: Ref): class APINoTranslationText(TextsAPIResponseMessage): def __init__(self, oref: Ref): - self.warning_code = APIWarningCode.APINoSourceText.value + self.warning_code = APIWarningCode.APINoTranslationText.value self.message = f'We do not have a translation for {oref}'