Violation
Location
sdks/python/pmxt/server_manager.py:156 (inside version-mismatch detection logic)
Why It Matters
This except Exception: pass wraps the entire version comparison block. If parsing or comparing version strings raises (e.g. malformed server response, unexpected schema), the function silently returns False, meaning the server is never flagged as needing a restart due to version mismatch. Users end up talking to a stale server with no indication anything went wrong.
Suggested Fix
Log the exception at warn level before falling through to return False:
except Exception as e:
logger.warning("server_manager: version check failed: %s", e)
Found by automated code hygiene audit
Violation
Location
sdks/python/pmxt/server_manager.py:156(inside version-mismatch detection logic)Why It Matters
This
except Exception: passwraps the entire version comparison block. If parsing or comparing version strings raises (e.g. malformed server response, unexpected schema), the function silently returnsFalse, meaning the server is never flagged as needing a restart due to version mismatch. Users end up talking to a stale server with no indication anything went wrong.Suggested Fix
Log the exception at warn level before falling through to
return False:Found by automated code hygiene audit