Return result string if it is not a dict

This commit is contained in:
Davte
2019-08-05 21:44:32 +02:00
parent 3fbe4b93e9
commit 91f9119ad5
2 changed files with 3 additions and 1 deletions

View File

@@ -195,6 +195,8 @@ class MultiLanguageObject(object):
)
)
return default_message or self.missing_message
if type(result) is str:
return result
return result[language].format(
**format_kwargs
)