Title: distutils/ overzealous catch block hides errors
Type: behavior Stage: resolved
Components: Distutils Versions: Python 3.4, Python 3.5, Python 2.7
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 2021-02-03 18:21 by steve.dower. This issue is now closed.

Messages (2)
msg283338 - (view) Author: Matt Bogosian (posita) * Date: 2016-12-15 18:08
From (e.g)

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

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


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
Date User Action Args
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