Skip to content

Commit f21ab6d

Browse files
Merge pull request #27 from GitTimeraider/alert-autofix-5
Potential fix for code scanning alert no. 5: Information exposure through an exception
2 parents 9cb899e + 0c92aac commit f21ab6d

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
@@ -187,8 +187,7 @@ def create_forwarder():
187187
print(f"Error creating forwarder: {str(e)}")
188188
traceback.print_exc()
189189
return jsonify({
190-
'error': 'Failed to create forwarder',
191-
'details': str(e)
190+
'error': 'Failed to create forwarder'
192191
}), 500
193192

194193
@app.route('/api/forwarders', methods=['DELETE'])

0 commit comments

Comments
 (0)