mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-20 19:01:23 +02:00
fix #188
This commit is contained in:
parent
3667bc34b7
commit
2f9386f22c
@ -116,8 +116,10 @@ def doujinshi_parser(id_):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
response = request('get', url)
|
response = request('get', url)
|
||||||
if response.status_code in (200,):
|
if response.status_code in (200, ):
|
||||||
response = response.content
|
response = response.content
|
||||||
|
elif response.status_code in (404, ):
|
||||||
|
raise Exception('Seems doujinshi {} does not exist'.format(id_))
|
||||||
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