FriendTeamInc / VodBot

A command line interface VOD and Clip manager for Twitch.
MIT License
14 stars 1 forks source link

Chatter that has been banned causes chat downloading to crash. #44

Closed NotQuiteApex closed 2 years ago

NotQuiteApex commented 2 years ago
Traceback (most recent call last):
  File "/usr/local/bin/vodbot", line 8, in <module>
    sys.exit(deffered_main())
  File "/usr/local/lib/python3.8/dist-packages/vodbot/__main__.py", line 17, in deffered_main
    main()
  File "/usr/local/lib/python3.8/dist-packages/vodbot/__main__.py", line 128, in main
    pull.run(args)
  File "/usr/local/lib/python3.8/dist-packages/vodbot/commands/pull.py", line 16, in run
    download_twitch_video(args)
  File "/usr/local/lib/python3.8/dist-packages/vodbot/commands/pull.py", line 130, in download_twitch_video
    itd_dl.dl_video_chat(vod, chatname)
  File "/usr/local/lib/python3.8/dist-packages/vodbot/itd/download.py", line 103, in dl_video_chat
    msgs = get_video_comments(video_id)
  File "/usr/local/lib/python3.8/dist-packages/vodbot/twitch.py", line 365, in get_video_comments
    usr = c["commenter"]["displayName"]
TypeError: 'NoneType' object is not subscriptable

There should be a check on the commenter being none, and if so display some kind of temporary name.