Skip to content

Commit e292353

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

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
@@ -442,7 +442,7 @@ def create_forwarder(self, address, destination):
442442
print(f"Error creating forwarder: {e}")
443443
import traceback
444444
traceback.print_exc()
445-
return False, str(e)
445+
return False, "An error occurred while creating the forwarder"
446446

447447
def delete_forwarder(self, address):
448448
"""Delete an email forwarder"""

0 commit comments

Comments
 (0)