From 5d2f7a55e3c981cc31a036f85a725a08348b92b6 Mon Sep 17 00:00:00 2001 From: caitlyn-wilhelm Date: Mon, 27 Dec 2021 12:52:01 -0800 Subject: [PATCH] updated delete raw data --- bigplanet/bigplanet.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bigplanet/bigplanet.py b/bigplanet/bigplanet.py index 643d60c..f60718e 100644 --- a/bigplanet/bigplanet.py +++ b/bigplanet/bigplanet.py @@ -29,8 +29,8 @@ def Main(bpInputFile, cores, quiet, overwrite, verbose, archive, deleterawdata, if os.path.exists(bplArchive) == True: Md5CheckSum(bplArchive, ignorecorrupt) reply = None - question = ("Archive file is verified and secured. This will delete all raw data. \n This includes:" + - folder + " and all its contents, along with any checkpoint files generated from MultiPlanet") + question = ("Archive file is verified and secured. This will delete all raw data.\nThis includes: " + + folder + " and all its contents, along with any checkpoint files generated from MultiPlanet.") while reply not in ("y", "n"): reply = str(input(question + " (y/n): ")).lower().strip() if reply[:1] == "y": @@ -40,7 +40,12 @@ def Main(bpInputFile, cores, quiet, overwrite, verbose, archive, deleterawdata, print("Raw data has been deleted") exit() if reply[:1] == "n": + print("Understood. Exiting.") exit() + if reply[:1] != "n" or reply[:1] != "y": + print("User input was not valid. Exiting.") + exit() + else: print("ERROR: The archive file, " + bplArchive + ",does not exist")