mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Warn when server returns a zero-length document
This commit is contained in:
parent
eacebcd6dd
commit
3553c321fd
@ -262,7 +262,7 @@ class RecursiveFetcher(object):
|
||||
dsrc = f.read()
|
||||
if len(dsrc) == 0:
|
||||
raise Exception('No content')
|
||||
soup = self.get_soup(f.read())
|
||||
soup = self.get_soup(dsrc)
|
||||
self.logger.debug('Processing images...')
|
||||
self.process_images(soup, f.geturl())
|
||||
if self.download_stylesheets:
|
||||
|
Loading…
x
Reference in New Issue
Block a user