mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
223444e208
commit
1c8296b710
@ -119,9 +119,10 @@ class SimpleScraper(QWebEnginePage):
|
||||
app.processEvents(QEventLoop.ProcessEventsFlag.ExcludeUserInputEvents)
|
||||
ans = self.current_fetch.get('html')
|
||||
if ans is None:
|
||||
eurl = fetching_url.toString()
|
||||
if self.current_fetch['working']:
|
||||
raise ValueError(f'Timed out loading HTML from {url_or_qurl}')
|
||||
raise ValueError(f'Failed to load HTML from {url_or_qurl}')
|
||||
raise TimeoutError(f'Timed out loading HTML from: {eurl}')
|
||||
raise ValueError(f'Failed to load HTML from: {eurl}')
|
||||
return ans
|
||||
finally:
|
||||
del self.current_fetch
|
||||
|
Loading…
x
Reference in New Issue
Block a user