]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36298: Raise ModuleNotFoundError in pyclbr when a module can't be found (GH-12358)
authorBrett Cannon <brettcannon@users.noreply.github.com>
Fri, 22 Mar 2019 22:16:50 +0000 (15:16 -0700)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 22 Mar 2019 22:16:50 +0000 (15:16 -0700)
commit5086589305ff5538709856b27314b68f06ae93db
tree53f1842d1dc8c9ae109dca4ccfc43941b5de320d
parentdd7c4ceed90792f711347024852d4cf883a9ab9e
bpo-36298: Raise ModuleNotFoundError in pyclbr when a module can't be found (GH-12358)

Before, an `AttributeError` was raised due to trying to access an attribute that exists on specs but having received `None` instead for a non-existent module.

https://bugs.python.org/issue36298
Lib/pyclbr.py
Lib/test/test_pyclbr.py
Misc/NEWS.d/next/Library/2019-03-15-13-54-07.bpo-36298.amEVK2.rst [new file with mode: 0644]