Hi All,
at first thanks for your help and for Kovid for creating Calibre.
I had created a private recipe for a relatively small Hungarian newspaper/site (behind a paywall).
My recipe was working perfectly two weeks ago, but now I got back from vacation and just updated Calibre and now it fails with:
Code:
Traceback (most recent call last):
File "site-packages/calibre/web/fetch/simple.py", line 553, in process_links
File "site-packages/calibre/web/feeds/news.py", line 992, in _postprocess_html
File "<string>", line 53, in postprocess_html
AttributeError: 'NoneType' object has no attribute 'replace'
My
postprocess_html begins with:
Code:
def postprocess_html(self, soup, first):
html_title = soup.find('title').string
new_html_title = html_title.replace(u" | ÉLET ÉS IRODALOM","")
And the replace part can't be executed on None(Type). However I had logged the soup and the html title (tag) is there.
Can you help me how to fix it? Thanks in advance,
Zsolt