summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-11-02 22:23:43 (GMT)
committerGitHub <noreply@github.com>2021-11-02 22:23:43 (GMT)
commitcfdd7d26a72e7ae523039e40c11001c2d7ef36ba (patch)
tree1ce73e5937bbc4ca1eb396fa86c1f8cd605e0bae /Misc
parent8af3090cb7af967ff699d82760ff36f978631b7a (diff)
downloadcpython-cfdd7d26a72e7ae523039e40c11001c2d7ef36ba.zip
cpython-cfdd7d26a72e7ae523039e40c11001c2d7ef36ba.tar.gz
cpython-cfdd7d26a72e7ae523039e40c11001c2d7ef36ba.tar.bz2
bpo-45406: make inspect.getmodule() return None when getabsfile() raises FileNotFoundError (GH-28824)
(cherry picked from commit a459a81530de700b3d3faeb827b22ed1c9985812) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2021-10-08-19-24-48.bpo-45406.Qh_Mz4.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-10-08-19-24-48.bpo-45406.Qh_Mz4.rst b/Misc/NEWS.d/next/Library/2021-10-08-19-24-48.bpo-45406.Qh_Mz4.rst
new file mode 100644
index 0000000..2c3a816
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-10-08-19-24-48.bpo-45406.Qh_Mz4.rst
@@ -0,0 +1 @@
+Make :func:`inspect.getmodule` catch ``FileNotFoundError`` raised by :'func:`inspect.getabsfile`, and return ``None`` to indicate that the module could not be determined. \ No newline at end of file