From e60108d75a8afef9b652b7d0136d038ce59d2e28 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Thu, 28 Jul 2011 12:19:20 -0400 Subject: [PATCH] Support optional --platform argument Signed-off-by: Dan Scott --- tools/ebooks/prep_ebook_records.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/ebooks/prep_ebook_records.py b/tools/ebooks/prep_ebook_records.py index cefe047e68..d7ef422909 100644 --- a/tools/ebooks/prep_ebook_records.py +++ b/tools/ebooks/prep_ebook_records.py @@ -394,6 +394,9 @@ def add_platform(record, options): have a matching 710 for digital platform. """ + if not 'platform' in options: + return False + platform = options['platform'] need_platform = True -- 2.11.0