From c5a236f3a837467d9d9ba1e1537cae573a83303a Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Tue, 18 May 2021 14:41:43 +0200 Subject: [PATCH] Fix book 3 FR --- livres_fr.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/livres_fr.py b/livres_fr.py index a092860..5dbb76b 100644 --- a/livres_fr.py +++ b/livres_fr.py @@ -57,5 +57,8 @@ for page in range(12): chapter = create_chapter_from_string(str(text), title) volumes[volume].add_chapter(chapter) -volumes[1].create_epub('output') -volumes[2].create_epub('output') +for ebook in volumes: + if ebook is None: + continue + + ebook.create_epub('output')