diff --git a/matplotlib/patches/font_name_encoding.patch b/matplotlib/patches/font_name_encoding.patch index 33729083a..db117b47d 100644 --- a/matplotlib/patches/font_name_encoding.patch +++ b/matplotlib/patches/font_name_encoding.patch @@ -16,7 +16,7 @@ diff -ur matplotlib-2.2.2/lib/matplotlib/font_manager.py matplotlib-2.2.2/lib/ma - sfnt4 = sfnt4.decode('mac_roman').lower() + try: + sfnt4 = sfnt4.decode('mac_roman').lower() -+ except LoopupError: ++ except LookupError: + sfnt4 = sfnt4.decode('latin1').lower() else: sfnt4 = ''