consolidate _update_email_in_args

This commit is contained in:
Taylor Wilsdon
2025-08-13 15:56:46 -04:00
parent e89161240c
commit c3bb9ee5b0
2 changed files with 16 additions and 12 deletions

View File

@@ -208,6 +208,7 @@ def main():
# Check port availability before starting HTTP server
try:
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.settimeout(1.0) # Prevent hanging on bind
s.bind(("0.0.0.0", port))
except OSError:
safe_print(f"❌ Port {port} is already in use. Cannot start HTTP server.")