From c183b282d4faadc1a6e9092580d5bd94932d3bd6 Mon Sep 17 00:00:00 2001 From: Torrin Leonard <82110564+torrinworx@users.noreply.github.com> Date: Tue, 23 Nov 2021 13:18:11 -0500 Subject: [PATCH] Resolving bug that crashes Blender when error is thrown --- src/Image_Generators/DNA_Generator.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Image_Generators/DNA_Generator.py b/src/Image_Generators/DNA_Generator.py index 13fa78c..0ccf16f 100644 --- a/src/Image_Generators/DNA_Generator.py +++ b/src/Image_Generators/DNA_Generator.py @@ -153,7 +153,6 @@ def returnData(): print(bcolors.ERROR + "\nERROR:" + bcolors.RESET) print("The collection " + str(i) + " doesn't follow the naming conventions of attributes. Please move this \n" "colleciton to Script_Ignore or review proper collection format in README.md") - sys.exit(bcolors.ERROR + "SCRIPT FAILED" + bcolors.RESET) return elif len(orderRarity) > 0: @@ -235,7 +234,6 @@ def returnData(): print("Here is the hierarchy of all collections the DNA_Generator gathered from your .blend file, excluding " "\nthose in Script_Ignore:") print(hierarchy) - sys.exit(bcolors.ERROR + "SCRIPT FAILED" + bcolors.RESET) numBatches = combinations/config.nftsPerBatch @@ -246,7 +244,6 @@ def returnData(): + str(config.nftsPerBatch) + " NFTs per batch.") print("Lower the number of NFTs per batch in config.py or increase the number of \nattributes and/or variants" " in your .blend file.") - sys.exit(bcolors.ERROR + "SCRIPT FAILED" + bcolors.RESET) return combinations