Skip to content

Commit 3f49f38

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/directadmin_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def delete_forwarder(self, address):
495495

496496
except Exception as e:
497497
print(f"Error deleting forwarder: {e}")
498-
return False, str(e)
498+
return False, "An error occurred while deleting the forwarder"
499499

500500
def validate_email(self, email):
501501
"""Basic email validation"""

0 commit comments

Comments
 (0)