bpo-34940: Fix the error handling in _check_for_legacy_statements(). (GH-9764)

1 file changed