add default

This commit is contained in:
Antonio J. Delgado 2025-02-17 15:40:30 +02:00
parent ed16a1838b
commit bdda8d55b8

View file

@ -308,6 +308,7 @@ class MastodonEmailBridge:
url=f"{self.config['libretranslate_url']}", url=f"{self.config['libretranslate_url']}",
data=data, data=data,
) )
self.last_translation_response = None
try: try:
self.last_translation_response = response.json() self.last_translation_response = response.json()
translation = self.last_translation_response['translatedText'] translation = self.last_translation_response['translatedText']