-
Notifications
You must be signed in to change notification settings - Fork 359
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
DROP_ID in [tag["id"] for tag in self.tags] and self.game != {} TypeError: 'NoneType' object is not iterable #343
Comments
same |
Same. I think Twitch pushed some kind of update that broke everything. |
+1 |
Temporary fix, add Twitch-Channel-Points-Miner-v2/TwitchChannelPointsMiner/classes/entities/Stream.py Line 57 in 7083798
This will fix the crash, but drops might not work. Diff: diff --git a/TwitchChannelPointsMiner/classes/entities/Stream.py b/TwitchChannelPointsMiner/classes/entities/Stream.py
index 99b378f..a36a172 100644
--- a/TwitchChannelPointsMiner/classes/entities/Stream.py
+++ b/TwitchChannelPointsMiner/classes/entities/Stream.py
@@ -54,7 +54,7 @@ class Stream(object):
self.broadcast_id = broadcast_id
self.title = title.strip()
self.game = game
- self.tags = tags
+ self.tags = tags or []
self.viewers_count = viewers_count
self.drops_tags = ( |
Thx, works just fine. Btw, how does this affect functionality? |
def update(self, broadcast_id, title, game, tags, viewers_count):
self.broadcast_id = broadcast_id
self.title = title.strip()
self.game = game
if tags is not None:
self.tags = tags
else:
self.tags = []
self.viewers_count = viewers_count
self.drops_tags = (
DROP_ID in [tag["id"] for tag in self.tags] and self.game != {}
)
self.__last_update = time.time()
logger.debug(f"Update: {self}")
that works for me
Am 21. Aug. 2023, 23:32 +0200 schrieb ViktorVoloshko ***@***.***>:
… > Temporary fix, add or [] at the end of this line:
> https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2/blob/7083798267a965142c1605434c7c5401d829da19/TwitchChannelPointsMiner/classes/entities/Stream.py#L57
> This will fix the crash, but drops might not work.
Thx, works just fine. Btw, how does this affect functionality?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Looks like the tags attribute is only used for farming drops, so that should be the only thing affected. This is a temporary fix for a reason, apply the official fix once it's out. |
guys off topic, how to make it run in windows with different accounts, but with the same rules |
Create a discussion if you want answer. |
changing This fix works for me. Also it helps to CLAIM rewards. Before this changes mining was successful, But claiming didn't work. |
It is already in in the miner repo and in the version 1.8.6. No need to change anything anymore. |
you are a heroe |
Describe the bug
This is the errors that I get:
Traceback (most recent call last):
File "/home/urko/TWITCH/3/example.py", line 106, in
twitch_miner.mine(
File "/home/urko/TWITCH/3/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py", line 210, in mine
self.run(streamers=streamers, blacklist=blacklist, followers=followers)
File "/home/urko/TWITCH/3/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py", line 299, in run
self.twitch.check_streamer_online(streamer)
File "/home/urko/TWITCH/3/TwitchChannelPointsMiner/classes/Twitch.py", line 179, in check_streamer_online
self.update_stream(streamer)
File "/home/urko/TWITCH/3/TwitchChannelPointsMiner/classes/Twitch.py", line 98, in update_stream
streamer.stream.update(
File "/home/urko/TWITCH/3/TwitchChannelPointsMiner/classes/entities/Stream.py", line 61, in update
DROP_ID in [tag["id"] for tag in self.tags] and self.game != {}
TypeError: 'NoneType' object is not iterable
Steps to reproduce
Ejecutate in terminal
Wait to loading data
Error
Expected behavior
?
Operating system
Latest
Python version
Latest
Miner version
Latest
Other relevant software versions
No response
Logs
Additional context
No response
The text was updated successfully, but these errors were encountered: