This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: distutils/check.py overzealous catch block hides errors
Type: behavior Stage: resolved
Components: Distutils Versions: Python 3.4, Python 3.5, Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: dstufft, eric.araujo, posita, steve.dower
Priority: normal Keywords:

Created on 2016-12-15 18:08 by posita, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg283338 - (view) Author: Matt B (posita) * Date: 2016-12-15 18:08
From (e.g) https://github.com/python/cpython/blob/2.7/Lib/distutils/command/check.py#L145:

{{{
        try:
            parser.parse(data, document)
        except AttributeError as e:  # <- this could happen anywhere inside parser.parse
            reporter.messages.append(
(-1, 'Could not finish the parsing: %s.' % e, '', {}))
}}}

Without a stack trace, diagnosing problems like #23063 becomes unnecessarily difficult. See also:

* https://sourceforge.net/p/docutils/bugs/270/
* https://sourceforge.net/p/docutils/bugs/302/

I'd offer a patch, but I'm not sure what is meant to be signaled by the `AttributeError`. (Could `parser.parse` not exist? Is it something else?)
msg386357 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-02-03 18:21
Distutils is now deprecated (see PEP 632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils.

If this issue does not relate to distutils, please remove the component and reopen it. If you believe it still requires a fix, most likely the issue should be re-reported at https://github.com/pypa/setuptools
History
Date User Action Args
2022-04-11 14:58:40adminsetgithub: 73167
2021-02-03 18:21:27steve.dowersetstatus: open -> closed

nosy: + steve.dower
messages: + msg386357

resolution: out of date
stage: resolved
2016-12-15 18:08:08positacreate