Skip to content

Commit 01a5faf

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,10 @@ def get_migration_status():
118118
})
119119

120120
except Exception as e:
121+
print(f"Error in /api/migration-status: {str(e)}")
122+
traceback.print_exc()
121123
return jsonify({
122-
'error': f'Migration status check failed: {str(e)}',
124+
'error': 'An internal error occurred while checking migration status.',
123125
'success': False
124126
}), 500
125127

0 commit comments

Comments
 (0)