🐛[bugfix] Model : modelでconfigにセットしていたため修正

This commit is contained in:
misyaguziya
2023-10-20 23:58:46 +09:00
parent e52321132d
commit f3b218e86e
2 changed files with 48 additions and 35 deletions

View File

@@ -52,6 +52,9 @@ class Translator():
from_language=source_language,
to_language=target_language,
)
except:
except Exception as e:
import traceback
with open('error.log', 'a') as f:
traceback.print_exc(file=f)
result = False
return result