Skip to content

Commit 5736d2c

Browse files
Potential fix for pull request finding 'CodeQL / Information exposure through an exception'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 1977e14 commit 5736d2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/bootstrap/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def upload_host_cert(request):
141141

142142
except Exception as e:
143143
logger.error(f"upload_host_cert error: {e}", exc_info=True)
144-
return JsonResponse({'success': False, 'error': str(e)}, status=500)
144+
return JsonResponse({'success': False, 'error': 'Internal server error'}, status=500)
145145

146146

147147
@login_required

0 commit comments

Comments
 (0)