Skip to content

Commit

Permalink
Fix code scanning alert no. 1: Information exposure through an exception
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
jonespm and github-advanced-security[bot] authored Dec 5, 2024
1 parent 179b3be commit f7c988e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/canvas_app_explorer/lti1p3.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def lti_error(error_message: Any) -> JsonResponse:
:return: JsonResponse, with status 500
"""
logger.error(f'LTI error: {error_message}')
return JsonResponse({'lti_error': f'{error_message}'}, status=500)
return JsonResponse({'lti_error': 'An internal error has occurred.'}, status=500)


def generate_jwks() -> Dict[str, list]:
Expand Down

0 comments on commit f7c988e

Please sign in to comment.