def upload_list(book_id_list, rdf_library=None):
with open(book_id_list, '<STR_LIT:r>') as f:<EOL><INDENT>cache = {}<EOL>for book_id in f:<EOL><INDENT>book_id = book_id.strip()<EOL>try:<EOL><INDENT>if int(book_id) in missing_pgid:<EOL><INDENT>print(u'<STR_LIT>'.format(book_id))<EOL>continue<EOL><DEDENT>upload_book(book_id, rdf_library=rdf_library, cache=cache)<EOL><DEDENT>except Exception as e:<EOL><INDENT>print(u'<STR_LIT>'.format(book_id))<EOL>logger.error(u"<STR_LIT>".format(book_id, e))<EOL><DEDENT><DEDENT><DEDENT>
Uses the fetch, make, push subcommands to add a list of pg books