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)
|
app.processEvents(QEventLoop.ProcessEventsFlag.ExcludeUserInputEvents)
|
||||||
ans = self.current_fetch.get('html')
|
ans = self.current_fetch.get('html')
|
||||||
if ans is None:
|
if ans is None:
|
||||||
|
eurl = fetching_url.toString()
|
||||||
if self.current_fetch['working']:
|
if self.current_fetch['working']:
|
||||||
raise ValueError(f'Timed out loading HTML from {url_or_qurl}')
|
raise TimeoutError(f'Timed out loading HTML from: {eurl}')
|
||||||
raise ValueError(f'Failed to load HTML from {url_or_qurl}')
|
raise ValueError(f'Failed to load HTML from: {eurl}')
|
||||||
return ans
|
return ans
|
||||||
finally:
|
finally:
|
||||||
del self.current_fetch
|
del self.current_fetch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user