diff --git a/nhentai/parser.py b/nhentai/parser.py index 484c0f6..0df5710 100644 --- a/nhentai/parser.py +++ b/nhentai/parser.py @@ -118,6 +118,9 @@ def doujinshi_parser(id_): response = request('get', url) if response.status_code in (200,): response = response.content + elif response.status_code in (404,): + logger.error("Doujinshi with id {0} cannot be found".format(id_)) + return [] else: logger.debug('Slow down and retry ({}) ...'.format(id_)) time.sleep(1)