diff --git a/PySubtitle/SubtitleProject.py b/PySubtitle/SubtitleProject.py index a417fb04..27371ac0 100644 --- a/PySubtitle/SubtitleProject.py +++ b/PySubtitle/SubtitleProject.py @@ -129,7 +129,11 @@ def SaveTranslation(self, outputpath : str = None): Write output file """ include_original = self.options.get('include_original', False) - self.subtitles.SaveTranslation(outputpath, include_original=include_original) + try: + self.subtitles.SaveTranslation(outputpath, include_original=include_original) + + except Exception as e: + logging.error(f"Unable to save translation: {e}") def TranslateScene(self, scene_number, batch_numbers = None, translator : SubtitleTranslator = None): """