Support optional --platform argument
authorDan Scott <dan@coffeecode.net>
Thu, 28 Jul 2011 16:19:20 +0000 (12:19 -0400)
committerDan Scott <dscott@laurentian.ca>
Tue, 7 May 2013 18:36:38 +0000 (14:36 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
tools/ebooks/prep_ebook_records.py

index cefe047..d7ef422 100644 (file)
@@ -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