diff --git a/lib/matplotlib/font_manager.py b/lib/matplotlib/font_manager.py index ca0fe710a7e5..12f311d8cc2a 100644 --- a/lib/matplotlib/font_manager.py +++ b/lib/matplotlib/font_manager.py @@ -207,7 +207,7 @@ def win32InstalledFonts(directory=None, fontext='ttf'): return list(items) except (OSError, MemoryError): continue - return None + return [] def OSXInstalledFonts(directories=None, fontext='ttf'):