Fix mismatched traceback in pythonrc.py injection
#25480
+4
−0
pythonrc.py injection
#25480