Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a174502

Browse files
committed
Fix crash rendering verbose message
svn path=/trunk/matplotlib/; revision=6736
1 parent 1c7742d commit a174502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def _write_afm_font(self, filename):
545545
def embedType1(self, texname, fontinfo):
546546
matplotlib.verbose.report(
547547
'Embedding ' + texname +
548-
' which is the Type 1 font ' + fontinfo.fontfile +
548+
' which is the Type 1 font ' + (fontinfo.fontfile or '(none)') +
549549
' with encoding ' + (fontinfo.encodingfile or '(none)') +
550550
' and effects ' + `fontinfo.effects`,
551551
'debug')

0 commit comments

Comments
 (0)