Bug: mangakakalot.com throws AttributeError("'NoneType...)
See original GitHub issueBug report
Mangas from mangakakalot throws [AttributeError("'NoneType' object has no attribute 'group'",)]
Environment:
Component | Value |
---|---|
Docker | π³ β |
OS | Debian GNU/Linux 10 (buster) |
Python version | Python 3.6.8 |
Pip version | pip 19.1.1 |
Npm version | 6.14.4 |
Manga-py version | 1.19.3 |
URL | π https://mangakakalot.com/read-du5qk158504853153 |
URL | π https://mangakakalot.com/read-gq1ax158504954888 |
URL | π https://mangakakalot.com/read-ne3dv158524478644 |
URL | π https://mangakakalot.com/manga/rm922554 |
To Reproduce:
Steps to reproduce the behavior:
docker run --interactive --tty --rm --name manga-py -v $PWD:/home/manga/Manga mangadl/manga-py \
manga-py --destination /home/manga/Manga --cbz --zero-fill --rename-pages --no-webp --show-current-chapter-info \
https://mangakakalot.com/read-du5qk158504853153 -c 1
Additional context
Output:
[AttributeError("'NoneType' object has no attribute 'group'",)]
Output with --debug
"I:/manga_py/provider.py:89:2020-05-08 20:51:08,058:Manga name: du5qk158504853153"
"I:/manga_py/provider.py:90:2020-05-08 20:51:08,510:Content length 66869"
"I:/manga_py/provider.py:92:2020-05-08 20:51:08,994:Chapters received (130)"
"I:/manga_py/provider.py:100:2020-05-08 20:51:08,995:User-agent: None"
"I:/manga_py/provider.py:134:2020-05-08 20:51:08,996:Processed chapter 0 / https://mangakakalot.com/chapter/senpai_ga_urusai_kouhai_no_hanashi/chapter_1"
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/manga_py/providers/helpers/manganelo_com_helper.py", line 10, in check_alternative_server
image.raise_for_status()
β <Response [403]>
File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 941, in raise_for_status
raise HTTPError(http_error_msg, response=self)
β β β <Response [403]>
β β '403 Client Error: Forbidden for url: https://s3.mkklcdnv3.com/mangakakalot/s1/senpai_ga_urusai_kouhai_no_hanashi/chapter_1/1.jp...
β <class 'requests.exceptions.HTTPError'>
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://s3.mkklcdnv3.com/mangakakalot/s1/senpai_ga_urusai_kouhai_no_hanashi/chapter_1/1.jpg
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/manga-py", line 10, in <module>
sys.exit(main())
β β <function main at 0x7f07024e1730>
β <module 'sys' (built-in)>
File "/usr/local/lib/python3.6/site-packages/manga_py/util.py", line 111, in main
exit(run_util(args))
β β β ArgumentParser(prog='manga-py', usage=None, description='%(prog)s is the universal manga downloader (for your offline reading).\...
β β <function run_util at 0x7f07024e1598>
β <built-in function exit>
File "/usr/local/lib/python3.6/site-packages/manga_py/util.py", line 83, in run_util
_info = _run_util(args)
β β ArgumentParser(prog='manga-py', usage=None, description='%(prog)s is the universal manga downloader (for your offline reading).\...
β <function _run_util at 0x7f07024e1488>
File "/usr/local/lib/python3.6/site-packages/manga_py/util.py", line 41, in _run_util
Cli(args, _info).start()
β β β <manga_py.info.Info object at 0x7f07024d3978>
β β ArgumentParser(prog='manga-py', usage=None, description='%(prog)s is the universal manga downloader (for your offline reading).\...
β <class 'manga_py.cli.Cli'>
File "/usr/local/lib/python3.6/site-packages/manga_py/cli/__init__.py", line 47, in start
self.parser.start()
β <manga_py.cli.Cli object at 0x7f07024d3908>
File "/usr/local/lib/python3.6/site-packages/manga_py/parser.py", line 49, in start
self.provider.process(self.params['url'], self.params)
β β β <manga_py.parser.Parser object at 0x7f07024d39e8>
β β <manga_py.parser.Parser object at 0x7f07024d39e8>
β <manga_py.parser.Parser object at 0x7f07024d39e8>
File "/usr/local/lib/python3.6/site-packages/manga_py/provider.py", line 102, in process
self.loop_chapters()
β <manga_py.providers.mangakakalot_com.MangaKakalotCom object at 0x7f07024d3c18>
File "/usr/local/lib/python3.6/site-packages/manga_py/provider.py", line 138, in loop_chapters
self._download_chapter()
β <manga_py.providers.mangakakalot_com.MangaKakalotCom object at 0x7f07024d3c18>
File "/usr/local/lib/python3.6/site-packages/manga_py/provider.py", line 120, in _download_chapter
raise e
File "/usr/local/lib/python3.6/site-packages/manga_py/provider.py", line 115, in _download_chapter
self._storage['files'] = self.get_files()
β β <manga_py.providers.mangakakalot_com.MangaKakalotCom object at 0x7f07024d3c18>
β <manga_py.providers.mangakakalot_com.MangaKakalotCom object at 0x7f07024d3c18>
File "/usr/local/lib/python3.6/site-packages/manga_py/providers/mangakakalot_com.py", line 38, in get_files
return check_alternative_server(images, self.__alternative_cdn)
β β β <manga_py.providers.mangakakalot_com.MangaKakalotCom object at 0x7f07024d3c18>
β β ['https://s3.mkklcdnv3.com/mangakakalot/s1/senpai_ga_urusai_kouhai_no_hanashi/chapter_1/1.jpg', 'https://s3.mkklcdnv3.com/mangak...
β <function check_alternative_server at 0x7f07025a51e0>
File "/usr/local/lib/python3.6/site-packages/manga_py/providers/helpers/manganelo_com_helper.py", line 13, in check_alternative_server
return ['%s%s' % (other_cdn, re.search(i).group(1)) for i in images]
β β β ['https://s3.mkklcdnv3.com/mangakakalot/s1/senpai_ga_urusai_kouhai_no_hanashi/chapter_1/1.jpg', 'https://s3.mkklcdnv3.com/mangak...
β β re.compile('^.*//[^/](/.+)$')
β 'https://bu2.mkklcdnbuv1.com'
File "/usr/local/lib/python3.6/site-packages/manga_py/providers/helpers/manganelo_com_helper.py", line 13, in <listcomp>
return ['%s%s' % (other_cdn, re.search(i).group(1)) for i in images]
β β β β 'https://s3.mkklcdnv3.com/mangakakalot/s1/senpai_ga_urusai_kouhai_no_hanashi/chapter_1/1.jpg'
β β β 'https://s3.mkklcdnv3.com/mangakakalot/s1/senpai_ga_urusai_kouhai_no_hanashi/chapter_1/1.jpg'
β β re.compile('^.*//[^/](/.+)$')
β 'https://bu2.mkklcdnbuv1.com'
AttributeError: 'NoneType' object has no attribute 'group'
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Why do I get AttributeError: 'NoneType' object has no attribute ...
NoneType means that instead of an instance of whatever Class or Object you think you're working with, you've actually got None . That...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ahahahah. See it
This will not be fixed because itβs not a mistake. Manganelo is considered a separate site, sorry