consolidate _update_email_in_args
This commit is contained in:
1
main.py
1
main.py
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user