Skip to content

Commit eaf3a26

Browse files
Merge pull request #28 from GitTimeraider/alert-autofix-4
Potential fix for code scanning alert no. 4: Information exposure through an exception
2 parents f21ab6d + e292353 commit eaf3a26

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)