diff --git a/fichub_cli/utils/fetch_data.py b/fichub_cli/utils/fetch_data.py index 0e349f9..4d106ef 100644 --- a/fichub_cli/utils/fetch_data.py +++ b/fichub_cli/utils/fetch_data.py @@ -13,6 +13,7 @@ # limitations under the License. import typer +import sys from tqdm import tqdm from colorama import Fore from loguru import logger @@ -128,7 +129,7 @@ def get_fic_with_infile(self, infile: str): "No new urls found! If output.log exists, please clear it.") except KeyboardInterrupt: - pass + sys.exit(2) finally: if self.changelog: @@ -210,7 +211,7 @@ def get_fic_with_list(self, list_url: str): "No new urls found! If output.log exists, please clear it.") except KeyboardInterrupt: - pass + sys.exit(2) finally: if self.changelog: