Skip to content

Commit 931c81e

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/directadmin_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,10 @@ def validate_domain_access(self):
280280
return False, "Unable to verify domain access"
281281

282282
except Exception as e:
283+
import traceback
283284
print(f"Error validating domain access: {e}")
284-
return False, f"Error validating domain: {str(e)}"
285+
traceback.print_exc()
286+
return False, "An internal error occurred while validating domain access."
285287

286288
def get_email_accounts(self):
287289
"""Get all email accounts for the domain"""

0 commit comments

Comments
 (0)