Skip to content

Commit

Permalink
fixing logger bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DivyenduDutta committed Oct 30, 2019
1 parent 0119080 commit 8acfb5d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web_scraper_goodreads_root/MainBookScraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def generate_book_review_images(genre):
sci_fi_book_details = retriveSciFiBookList(genre)
# print('*'*15)
# Save the details to pkl file
save_obj(sci_fi_book_details, "sci-fi-books-list", "Data")
save_obj(sci_fi_book_details, "sci-fi-books-list", "Data", True)
# Read the latest pickle file
sci_fi_list = load_latest_obj("sci-fi-books-list", "Data")
book_index = 0
Expand All @@ -75,7 +75,10 @@ def generate_book_review_images(genre):

# save the book details
save_obj(
book_review_details, "book_review_details", "Data/" + book_name
book_review_details,
"book_review_details",
"Data/" + book_name,
True,
)
# load the latest pkl file having review details
book_review = load_latest_obj(
Expand Down Expand Up @@ -112,6 +115,7 @@ def generate_book_review_images(genre):
Logger.log(
"error",
"MainBookScraper",
"generate_book_review_images",
"Skipping "
+ book_name
+ " since it hit exception more than threshold limit",
Expand Down

0 comments on commit 8acfb5d

Please sign in to comment.