Move attempt to resolve books to view action.

This commit is contained in:
Adam Kelly
2020-04-12 13:54:10 +01:00
parent f2f0c979f1
commit 5148820fa3
2 changed files with 6 additions and 8 deletions

View File

@ -2,7 +2,6 @@
import re
import csv
import itertools
from requests import HTTPError
from fedireads import books_manager
@ -42,13 +41,7 @@ class GoodreadsCsv:
def __iter__(self):
for line in itertools.islice(self.reader, MAX_ENTRIES):
entry = GoodreadsItem(line)
try:
entry.resolve()
except HTTPError:
pass
yield entry
yield GoodreadsItem(line)
class GoodreadsItem:
''' a processed line in a goodreads csv '''