Skip to content

Commit 6bcc8c7

Browse files
authored
Merge pull request #10858 from jklymak/fix-ioerror-font-cache
FIX: ioerror font cache, second try
2 parents 3599db9 + 5766c9f commit 6bcc8c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/font_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ def json_dump(data, filename):
896896
try:
897897
json.dump(data, fh, cls=JSONEncoder, indent=2)
898898
except OSError as e:
899-
warnings.warn('Could not save font_manager cache ', e)
899+
warnings.warn('Could not save font_manager cache {}'.format(e))
900900

901901

902902
def json_load(filename):

0 commit comments

Comments
 (0)