Skip to content

Commit 052c633

Browse files
authored
DOC: add code comment
1 parent 48832dc commit 052c633

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/cbook/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1991,6 +1991,7 @@ def _warn_external(message, category=None):
19911991
frame = sys._getframe()
19921992
for stacklevel in itertools.count(1): # lgtm[py/unused-loop-variable]
19931993
if frame is None:
1994+
# when called in embedded context may hit frame is None
19941995
break
19951996
if not re.match(r"\A(matplotlib|mpl_toolkits)(\Z|\.)",
19961997
# Work around sphinx-gallery not setting __name__.

0 commit comments

Comments
 (0)