Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48832dc commit 052c633Copy full SHA for 052c633
1 file changed
lib/matplotlib/cbook/__init__.py
@@ -1991,6 +1991,7 @@ def _warn_external(message, category=None):
1991
frame = sys._getframe()
1992
for stacklevel in itertools.count(1): # lgtm[py/unused-loop-variable]
1993
if frame is None:
1994
+ # when called in embedded context may hit frame is None
1995
break
1996
if not re.match(r"\A(matplotlib|mpl_toolkits)(\Z|\.)",
1997
# Work around sphinx-gallery not setting __name__.
0 commit comments