mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 12:36:11 +02:00
Improve quotev.com not found reporting a little.
This commit is contained in:
parent
636e15cdb6
commit
555638dc9c
1 changed files with 5 additions and 2 deletions
|
|
@ -51,8 +51,11 @@ class QuotevComAdapter(BaseSiteAdapter):
|
|||
def extractChapterUrlsAndMetadata(self):
|
||||
try:
|
||||
data = self._fetchUrl(self.url)
|
||||
except urllib2.HTTPError:
|
||||
raise exceptions.FailedToDownload(self.url)
|
||||
except urllib2.HTTPError as e:
|
||||
if e.code == 404:
|
||||
raise exceptions.StoryDoesNotExist("Code: %s: %s"%(e.code,self.url))
|
||||
else:
|
||||
raise #exceptions.FailedToDownload(self.url)
|
||||
|
||||
soup = self.make_soup(data)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue