From 8417a468fa2b73283d3af5e249e810315aaab9c8 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 4 Oct 2020 04:56:16 +0000 Subject: [PATCH] Use `sys.exit()` calls --- Scripts/Web_Scrappers/CodeChef_Scraper/codechef_ps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/Web_Scrappers/CodeChef_Scraper/codechef_ps.py b/Scripts/Web_Scrappers/CodeChef_Scraper/codechef_ps.py index e1c7c3826..50f2425df 100644 --- a/Scripts/Web_Scrappers/CodeChef_Scraper/codechef_ps.py +++ b/Scripts/Web_Scrappers/CodeChef_Scraper/codechef_ps.py @@ -39,7 +39,7 @@ def scrapeCodeChef(code): print(f"[FINISHED] - File saved - problems/{code}.txt") except Exception: print("Cannot Find CodeChef Problem! - " + code) - exit(0) + sys.exit(0) if __name__ == "__main__": @@ -47,5 +47,5 @@ def scrapeCodeChef(code): code = sys.argv[1] except Exception: print("Please Enter A CodeChef Problem Code as a", "Command-Line Argument!") - exit(0) + sys.exit(0) scrapeCodeChef(code)