Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kemonoparty: "'NoneType' object has no attribute 'strip'" when downloading dms #3106

Closed
Dashinginthe90s opened this issue Oct 26, 2022 · 0 comments

Comments

@Dashinginthe90s
Copy link

Running the latest dev version built from git.
When "kemonoparty: {"dms": true} is set in the config gallery-dl throws an error when downloading a creator that has DMs.
Setting "dms": false allows the creator to download successfully.

I believe this was caused by kemonoparty's recent UI changes.

$ gallery-dl --verbose https://kemono.party/patreon/user/17913091
[gallery-dl][debug] Version 1.24.0-dev
[gallery-dl][debug] Python 3.9.2 - Linux-5.15.64-1-pve-x86_64-with-glibc2.31
[gallery-dl][debug] requests 2.25.1 - urllib3 1.26.5
[gallery-dl][debug] Starting DownloadJob for 'https://kemono.party/patreon/user/17913091'
[kemonoparty][debug] Using KemonopartyUserExtractor for 'https://kemono.party/patreon/user/17913091'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): kemono.party:443
[urllib3.connectionpool][debug] https://kemono.party:443 "GET /patreon/user/17913091 HTTP/1.1" 200 8335
[urllib3.connectionpool][debug] https://kemono.party:443 "GET /api/patreon/user/17913091?o=0 HTTP/1.1" 200 13925
[urllib3.connectionpool][debug] https://kemono.party:443 "GET /patreon/user/17913091/dms HTTP/1.1" 200 3565
[kemonoparty][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'strip'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[kemonoparty][debug]
Traceback (most recent call last):
  File "/home/nicholas/.local/lib/python3.9/site-packages/gallery_dl/job.py", line 82, in run
    for msg in extractor:
  File "/home/nicholas/.local/lib/python3.9/site-packages/gallery_dl/extractor/kemonoparty.py", line 79, in items
    dms = self._extract_dms(post)
  File "/home/nicholas/.local/lib/python3.9/site-packages/gallery_dl/extractor/kemonoparty.py", line 192, in _extract_dms
    "body": text.unescape(text.extract(
AttributeError: 'NoneType' object has no attribute 'strip'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants