From 737fc8961fe5129e8cc3adaec247786926c5f7c9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 24 Dec 2010 09:40:13 -0700 Subject: [PATCH] ... --- src/calibre/ebooks/mobi/mobiml.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/ebooks/mobi/mobiml.py b/src/calibre/ebooks/mobi/mobiml.py index 001cf2c1e9..9733c5f4ca 100644 --- a/src/calibre/ebooks/mobi/mobiml.py +++ b/src/calibre/ebooks/mobi/mobiml.py @@ -468,8 +468,9 @@ class MobiMLizer(object): vtag.append(child) else: break - for child in vbstate.para: - vtag.append(child) + if vbstate.para is not None: + for child in vbstate.para: + vtag.append(child) return if text or tag in CONTENT_TAGS or tag in NESTABLE_TAGS: