Skip to content

Commit 86c9045

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/hl-decide/app/portfolio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,4 +489,4 @@ async def get_execution_logs(
489489
}
490490
except Exception as e:
491491
print(f"[portfolio] Failed to get execution logs: {e}")
492-
return {"total": 0, "limit": limit, "offset": offset, "items": [], "error": str(e)}
492+
return {"total": 0, "limit": limit, "offset": offset, "items": [], "error": "An internal error occurred."}

0 commit comments

Comments
 (0)