Skip to content

Commit 01627ce

Browse files
committed
Merge pull request #677 from jkseppan/issue-672
Only call dirname on string-like directory names
2 parents 9c676df + 87e2e2c commit 01627ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/font_manager.py

+2
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ def win32InstalledFonts(directory=None, fontext='ttf'):
223223
for j in range(_winreg.QueryInfoKey(local)[1]):
224224
try:
225225
key, direc, any = _winreg.EnumValue( local, j)
226+
if not is_string_like(direc):
227+
continue
226228
if not os.path.dirname(direc):
227229
direc = os.path.join(directory, direc)
228230
direc = os.path.abspath(direc).lower()

0 commit comments

Comments
 (0)