strip response

This commit is contained in:
Antonio J. Delgado 2025-02-18 15:10:00 +02:00
parent 705dfe7196
commit ee600178c4

View file

@ -315,7 +315,7 @@ class MastodonEmailBridge:
self.last_translation_response = None
try:
self.last_translation_response = response.json()
translation = self.last_translation_response['translatedText']
translation = self.last_translation_response['translatedText'].strip(' ').strip('\n')
except Exception as error:
self._log.error(
"Error translating '%s' from '%s' to '%s'. %s. Response content: %s",