mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-06-20 16:10:58 +00:00
Fix string index out of range fault
This commit is contained in:
parent
a9bff7929c
commit
2972292fc5
2 changed files with 4 additions and 0 deletions
|
@ -644,6 +644,7 @@ def create_app(args):
|
|||
}
|
||||
)
|
||||
except Exception as e:
|
||||
raise e
|
||||
abort(500, description=_("Cannot translate text: %(text)s", text=str(e)))
|
||||
|
||||
@bp.post("/translate_file")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue