From aba7d66ed82b2b18854a5f11a1ba30c2beda891c Mon Sep 17 00:00:00 2001 From: wasertech Date: Sun, 12 Mar 2023 01:38:59 +0100 Subject: [PATCH] v0.2.7b2 --- translator/__init__.py | 2 +- translator/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/translator/__init__.py b/translator/__init__.py index 08d1a2d..7c233e1 100644 --- a/translator/__init__.py +++ b/translator/__init__.py @@ -1,6 +1,6 @@ from translator.translate import Translator from translator.language import get_nllb_lang -__version__ = "0.2.7b1" +__version__ = "0.2.7b2" LANGS = get_nllb_lang() diff --git a/translator/main.py b/translator/main.py index 4c31257..34be3b2 100644 --- a/translator/main.py +++ b/translator/main.py @@ -76,7 +76,7 @@ def main(): spinner.fail(f"Missing sentences to translate.") sys.exit(1) - if not _to: + if not _to and _from: if not args.directory: spinner.fail(f"Missing \'_to\' argument.") print("Please choose a target language or at least give a sentence or a directory to translate.")