Skip to content

Commit

Permalink
Updated log statement
Browse files Browse the repository at this point in the history
  • Loading branch information
k-macmillan committed Jan 2, 2025
1 parent 358261c commit ea7e54c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lambda_functions/va_profile/va_profile_opt_in_out_lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 4 additions & 3 deletions scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ea7e54c

Please sign in to comment.