Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Insert fallback string if landingpage setting is missing
  • Loading branch information
kthoden committed Sep 29, 2020
1 parent 0abc074 commit f8f8828
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/imxml2epub.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8; mode: python -*-
# Time-stamp: <2020-09-29 14:48:37 (kthoden)>
# Time-stamp: <2020-09-29 14:59:29 (kthoden)>

""" Convert a customized DocBook XML file into a set of files that
constitute the contents of an EPUB file.
Expand Down Expand Up @@ -546,7 +546,10 @@ def add_css_snippet(css_snippet, css_file):
publication_series = cfgPublication.get("Technical", "Serie")
publication_number = cfgPublication.get("Technical", "Number")
publication_license = cfgPublication.get("Technical", "License")
publication_landingpage = cfgPublication.get("Technical", "LandingPage")
try:
publication_landingpage = cfgPublication.get("Technical", "LandingPage")
except:
publication_landingpage = "landingpage_missing"
try:
publication_isbn = cfgPublication.get("Technical", "ISBN-epub")
except:
Expand Down

0 comments on commit f8f8828

Please sign in to comment.