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

Twitter - AttributeError: 'NoneType' object has no attribute 'partition' #1019

Closed
archiif opened this issue Sep 21, 2020 · 1 comment
Closed
Labels

Comments

@archiif
Copy link

archiif commented Sep 21, 2020

Using the latest version (1.15.0), gallery-dl fails when searching on certain accounts. It seems the issue is related to Twitpic.

This is the command I used:
galery -dl --verbose "https://twitter.com/search?q=from:Branch02"

And this is the error:

[urllib3.connectionpool][debug] https://api.twitter.com:443 "GET /2/search/adaptive.json?include_profile_interstitial_type=1&include_blocking=1&include_blocked_by=1&include_followed_by=1&include_want_retweets=1&include_mute_edge=1&include_can_dm=1&include_can_media_tag=1&skip_status=1&cards_platform=Web-12&include_cards=1&include_composer_source=true&include_ext_alt_text=true&include_reply_count=1&tweet_mode=extended&include_entities=true&include_user_entities=true&include_ext_media_color=true&include_ext_media_availability=true&send_error_codes=true&simple_quoted_tweet=true&count=100&cursor=scroll%3AthGAVUV0VFVBaAwJCc_cjx-gcWgsCs7a3ahokkEjUAFQAlABEV_O5yFYCJehgHREVGQVVMVBUAFQAVARUAFQAA&ext=mediaStats%2ChighlightedLabel%2CcameraMoment&include_quote_count=true&q=from%3ABranch02&tweet_search_mode=live&query_source=typed_query&pc=1&spelling_corrections=1 HTTP/1.1" 200 17409
[urllib3.connectionpool][debug] http://twitpic.com:80 "GET /photos/Takashi_Shiina HTTP/1.1" 302 0
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): twitpic.com:443
[urllib3.connectionpool][debug] https://twitpic.com:443 "GET / HTTP/1.1" 200 6523
[twitter][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'partition'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[twitter][debug]
Traceback (most recent call last):
  File "c:\users\name\appdata\local\programs\python\python38-32\lib\site-packages\gallery_dl\job.py", line 68, in run
    self.dispatch(msg)
  File "c:\users\name\appdata\local\programs\python\python38-32\lib\site-packages\gallery_dl\job.py", line 102, in dispatch
    self.handle_url(url, kwds)
  File "c:\users\name\appdata\local\programs\python\python38-32\lib\site-packages\gallery_dl\job.py", line 246, in handle_url
    if not self.download(url):
  File "c:\users\name\appdata\local\programs\python\python38-32\lib\site-packages\gallery_dl\job.py", line 346, in download
    scheme = url.partition(":")[0]
AttributeError: 'NoneType' object has no attribute 'partition'
@mikf mikf closed this as completed in aeb0d32 Sep 23, 2020
@mikf mikf added the bug label Sep 23, 2020
@archiif
Copy link
Author

archiif commented Sep 23, 2020

Thank you!

Korvox pushed a commit to Korvox/gallery-dl that referenced this issue Sep 26, 2020
- ignore twitpic.com/photos/… URLs
- ignore empty image URLs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants