Violation
try:
port = self.get_running_port()
if self._check_health(port):
return
except:
pass
Location
sdks/python/pmxt/server_manager.py:475
Why It Matters
Bare except: in the health-wait polling loop catches KeyboardInterrupt, so pressing Ctrl-C while waiting for the server to start will be silently swallowed — the loop continues until HEALTH_CHECK_TIMEOUT expires and then raises a generic Exception("Server failed to become healthy"). This makes Ctrl-C unusable during server startup.
Suggested Fix
Or, for the intent of suppressing transient connection errors only, use a narrower exception type.
Found by automated code hygiene audit
Violation
Location
sdks/python/pmxt/server_manager.py:475Why It Matters
Bare
except:in the health-wait polling loop catchesKeyboardInterrupt, so pressing Ctrl-C while waiting for the server to start will be silently swallowed — the loop continues untilHEALTH_CHECK_TIMEOUTexpires and then raises a genericException("Server failed to become healthy"). This makes Ctrl-C unusable during server startup.Suggested Fix
Or, for the intent of suppressing transient connection errors only, use a narrower exception type.
Found by automated code hygiene audit