Skip to content

Commit 1d5222b

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,8 @@ def test_backup_with_context():
533533
else:
534534
return f"Repository {repository.id} not found or inactive"
535535
except Exception as e:
536-
logger.error(f"Error in test backup for repository {repository.id}: {e}")
537-
return f"Error: {str(e)}"
536+
logger.error(f"Error in test backup for repository {repository.id}: {e}", exc_info=True)
537+
return "An internal error occurred during the backup operation."
538538

539539
try:
540540
result = test_backup_with_context()

0 commit comments

Comments
 (0)