From 0ad58ef8a606ea2ecc737e546f6b4ba70f176045 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 21 Oct 2013 08:34:10 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/mobi/mobiml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/mobi/mobiml.py b/src/calibre/ebooks/mobi/mobiml.py index 741b0d6a8d..30ef270338 100644 --- a/src/calibre/ebooks/mobi/mobiml.py +++ b/src/calibre/ebooks/mobi/mobiml.py @@ -382,7 +382,7 @@ class MobiMLizer(object): istate.fgcolor = style['color'] istate.strikethrough = style.effective_text_decoration == 'line-through' istate.underline = style.effective_text_decoration == 'underline' - ff = style['font-family'].lower() if style['font-family'] else '' + ff = style['font-family'].lower() if hasattr(style['font-family'], 'lower') else '' if 'monospace' in ff or 'courier' in ff or ff.endswith(' mono'): istate.family = 'monospace' elif ('sans-serif' in ff or 'sansserif' in ff or 'verdana' in ff or