Skip to content

Commit 2d837ce

Browse files
Potential fix for code scanning alert no. 8: Information exposure through an exception
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 0a75848 commit 2d837ce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,7 @@ def delete_forwarder():
234234
print(f"Error deleting forwarder: {str(e)}")
235235
traceback.print_exc()
236236
return jsonify({
237-
'error': 'Failed to delete forwarder',
238-
'details': str(e)
237+
'error': 'Failed to delete forwarder'
239238
}), 500
240239

241240
# ===== Error Handlers =====

0 commit comments

Comments
 (0)