mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-20 11:01:17 +02:00
Merge branch 'master' into dev
This commit is contained in:
commit
af379c825c
@ -119,7 +119,8 @@ def doujinshi_parser(id_):
|
|||||||
if response.status_code in (200, ):
|
if response.status_code in (200, ):
|
||||||
response = response.content
|
response = response.content
|
||||||
elif response.status_code in (404,):
|
elif response.status_code in (404,):
|
||||||
raise Exception('Seems doujinshi {} does not exist'.format(id_))
|
logger.error("Doujinshi with id {0} cannot be found".format(id_))
|
||||||
|
return []
|
||||||
else:
|
else:
|
||||||
logger.debug('Slow down and retry ({}) ...'.format(id_))
|
logger.debug('Slow down and retry ({}) ...'.format(id_))
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user