Skip to content

Commit

Permalink
Ah.... systemexit
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanHenson committed Oct 4, 2023
1 parent 592cc93 commit aa8c1b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ def using_system_libcrypto():

def strict_build_success_mode():
strict_mode = os.getenv('AWS_CRT_BUILD_STRICT_MODE')
print(strict_mode)
print(strict_mode.strip().lower())
print("Strict-Mode is set to: {}".format(strict_mode))
return strict_mode != None and strict_mode.strip().lower() != 'off'

def report_build_status(status):
Expand Down Expand Up @@ -422,7 +421,7 @@ def _load_version():
test_suite='test',
)

except Exception as e:
except (SystemExit, Exception) as e:
if (strict_build_success_mode()):
raise e

Expand Down

0 comments on commit aa8c1b8

Please sign in to comment.