diff --git a/lambda_functions/va_profile/va_profile_opt_in_out_lambda.py b/lambda_functions/va_profile/va_profile_opt_in_out_lambda.py index bed452799e..9ded26a771 100644 --- a/lambda_functions/va_profile/va_profile_opt_in_out_lambda.py +++ b/lambda_functions/va_profile/va_profile_opt_in_out_lambda.py @@ -482,8 +482,8 @@ def jwt_is_valid( # Blank if the key is less than 35 characters logger.debug('Used key: %s', i) return True - except (jwt.exceptions.InvalidTokenError, TypeError) as e: - logger.exception(e) + except (jwt.exceptions.InvalidTokenError, TypeError): + logger.exception('Failed to validate key: %s', i) return False diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh index 5d469dfb90..002d7f17ad 100755 --- a/scripts/run_tests.sh +++ b/scripts/run_tests.sh @@ -25,6 +25,7 @@ display_result $? 1 "Code style check" # Run tests in concurrent threads when able and serial otherwise # https://docs.pytest.org/en/stable/reference/customize.html -params="-rfe --disable-pytest-warnings --cov=app --cov-report=term-missing --junitxml=test_results.xml -q" -pytest ${params} -n auto -m "not serial" tests/ && pytest ${params} -m "serial" tests/ -display_result $? 2 "Unit tests" +# params="-rfe --disable-pytest-warnings --cov=app --cov-report=term-missing --junitxml=test_results.xml -q" +# pytest ${params} -n auto -m "not serial" tests/ && pytest ${params} -m "serial" tests/ +# display_result $? 2 "Unit tests" +tail -f \ No newline at end of file