mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-28 19:56:40 +01:00
Fix for exception issue on rare errors in base_efiction_adapter
This commit is contained in:
parent
d221adabbb
commit
2e01380b5d
1 changed files with 2 additions and 2 deletions
|
|
@ -360,9 +360,9 @@ class BaseEfictionAdapter(BaseSiteAdapter):
|
|||
errorDiv = soup.find("div", "errortext")
|
||||
self.triedAcceptWarnings = True
|
||||
else:
|
||||
raise exception.FailedToDownload(self.url, unicode(errorDiv))
|
||||
raise exceptions.FailedToDownload("Error with URL: %s (%s)" % (self.url,stripHTML(errorDiv)))
|
||||
else:
|
||||
raise exception.FailedToDownload(self.url, unicode(errorDiv))
|
||||
raise exceptions.FailedToDownload("Error with URL: %s (%s)" % (self.url,stripHTML(errorDiv)))
|
||||
|
||||
# title and author
|
||||
pagetitleDiv = soup.find("div", {"id": "pagetitle"})
|
||||
|
|
|
|||
Loading…
Reference in a new issue