diff --git a/bot/babel/translator.py b/bot/babel/translator.py index fa8c030b..2ede4068 100644 --- a/bot/babel/translator.py +++ b/bot/babel/translator.py @@ -81,7 +81,7 @@ class LeoBabel(Translator): async def translate(self, string: locale_str, locale: Locale, context): if locale.value in self.supported_locales: domain = string.extras.get('domain', None) - if domain is None: + if domain is None and isinstance(string, LazyStr): logger.debug( f"LeoBabel cannot translate a locale_str with no domain set. Context: {context}, String: {string}" )