summaryrefslogtreecommitdiffstats
path: root/Lib/bdb.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-03-13 03:57:09 (GMT)
committerLisa Roach <lisaroach14@gmail.com>2019-03-13 03:57:09 (GMT)
commit86900a49000c4a96ad1dc34e49d8af4245b08843 (patch)
treeca1872877872403bc9eb861ecdc602a7051962b9 /Lib/bdb.py
parent839b925f6347222de560cdb767924c502b4039aa (diff)
downloadcpython-86900a49000c4a96ad1dc34e49d8af4245b08843.zip
cpython-86900a49000c4a96ad1dc34e49d8af4245b08843.tar.gz
cpython-86900a49000c4a96ad1dc34e49d8af4245b08843.tar.bz2
Fix stepping into a frame without a __name__ (GH-12064)
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r--Lib/bdb.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py
index 25c6260..ec0f92c 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -190,6 +190,8 @@ class Bdb:
def is_skipped_module(self, module_name):
"Return True if module_name matches any skip pattern."
+ if module_name is None: # some modules do not have names
+ return False
for pattern in self.skip:
if fnmatch.fnmatch(module_name, pattern):
return True