Make python adapter error message a bit better (#40440)

Release Notes:

- N/A
4fa3331bf2Mikayla Maki committed on 10/16/2025, 11:44:32 PM· committed by GitHubparentcdc9728
1 file changedLine totals unavailable