mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-20 02:41:19 +02:00
fix #188
This commit is contained in:
parent
3667bc34b7
commit
2f9386f22c
@ -116,8 +116,10 @@ def doujinshi_parser(id_):
|
||||
|
||||
try:
|
||||
response = request('get', url)
|
||||
if response.status_code in (200,):
|
||||
if response.status_code in (200, ):
|
||||
response = response.content
|
||||
elif response.status_code in (404, ):
|
||||
raise Exception('Seems doujinshi {} does not exist'.format(id_))
|
||||
else:
|
||||
logger.debug('Slow down and retry ({}) ...'.format(id_))
|
||||
time.sleep(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user