DevilXD / TwitchDropsMiner

An app that allows you to AFK mine timed Twitch drops, with automatic drop claiming and channel switching.
MIT License
1.72k stars 169 forks source link

"Error: 'NoneType' object is not subscriptable" on Channel.from_directory #547

Closed vexxowo closed 2 months ago

vexxowo commented 2 months ago

Screenshot 2024-08-26 210733

guihkx commented 2 months ago

Do not download and run the file above, it's most likely malicious and the person has been spamming the same comment across different repositories, e.g.:

Make sure to block and report his account too.

EDIT: His account has been banned and the malicious comments were removed.

Knoxand commented 2 months ago

@guihkx personally not debugged the code but I encountered this issue with the current streamer list for the game of SMITE. Excluding it solved for now

DevilXD commented 2 months ago

Hello,

I am unable to reproduce this issue with the SMITE and Overwatch 2 campaigns I have available. Which game does this happen for?

vexxowo commented 2 months ago

I am not sure but here are my settings Screenshot 2024-08-27 184656

DevilXD commented 2 months ago

@vexxic Has this issue ever repeated for you after that?

vexxowo commented 2 months ago

It happened once more after posting this, but I haven't seen it since, my only guess is that it's related to the priority only setting being unticked, iirc the error wasn't happening when it was ticked

DevilXD commented 2 months ago

The error suggests that, when asked about a list of live channels, Twitch has returned a list with null in it, like so: [null].

If there would be no channels available to return, it'd instead be just an empty list: [ ].

This is a Twitch bug, or more like a quirk. I don't know what I'm supposed to do with it. Twitch had a temporary hiccup, but now it's back to normal. Am I supposed to handle cases like this even?

vexxowo commented 2 months ago

Since it hasn't been happening recently, I'd be fine with closing this topic, thanks for your work