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

TypeError: 'NoneType' object is not subscriptable #117

Closed
vanyamlb opened this issue Feb 14, 2021 · 0 comments · Fixed by #118
Closed

TypeError: 'NoneType' object is not subscriptable #117

vanyamlb opened this issue Feb 14, 2021 · 0 comments · Fixed by #118

Comments

@vanyamlb
Copy link

After getting rid of error #112, I started getting this error after scanning for some amount of videos on channels.

Here is an example:

tcd -c mrmashadi --first=500


[PS5] WL Road to Top200 - Road to 2k Follower - !instagram !youtube !watchtime !team
[default] ./874918085.txt
[PS5] Pack Opening - Road to 2k Follower - !instagram !youtube !watchtime !team
Traceback (most recent call last):
File "c:\users\vanya\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return run_code(code, main_globals, None,
File "c:\users\vanya\appdata\local\programs\python\python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\vanya\AppData\Local\Programs\Python\Python39\Scripts\tcd.exe_main.py", line 7, in
File "c:\users\vanya\appdata\local\programs\python\python39\lib\site-packages\tcd_init.py", line 92, in main
Downloader().channels(Arguments().channels)
File "c:\users\vanya\appdata\local\programs\python\python39\lib\site-packages\tcd\downloader.py", line 195, in channels
self.video(video)
File "c:\users\vanya\appdata\local\programs\python\python39\lib\site-packages\tcd\downloader.py", line 143, in video
for formatted_comment, comment in comment_tuple:
File "c:\users\vanya\appdata\local\programs\python\python39\lib\site-packages\tcd\formats\custom.py", line 30, in comment_generator
yield Pipe(self.format_dictionary['comments']).comment(comment.data), comment
File "c:\users\vanya\appdata\local\programs\python\python39\lib\site-packages\tcd\pipe.py", line 51, in comment
return self.format(comment_data)
File "c:\users\vanya\appdata\local\programs\python\python39\lib\site-packages\tcd\pipe.py", line 41, in format
self.mapper(data)
File "c:\users\vanya\appdata\local\programs\python\python39\lib\site-packages\tcd\pipe.py", line 136, in mapper
self._map_user_colors(data)
File "c:\users\vanya\appdata\local\programs\python\python39\lib\site-packages\tcd\pipe.py", line 186, in _map_user_colors
sha256.update(str.encode(data['commenter']['_id']))

**TypeError: 'NoneType' object is not subscriptable**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant