Skip to content

Commit 1b6611d

Browse files
committed
Fix is_subscriber for founder
else clause in expression was never getting executed due to int(0) being returned rather than None.
1 parent 9d71d65 commit 1b6611d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twitchio/chatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def is_subscriber(self) -> bool:
203203
204204
changed in 2.1.0: return value is no longer optional. founders will now appear as subscribers
205205
"""
206-
return bool(self._sub) if self._sub is not None else "founder" in self.badges
206+
return bool(self._sub) or "founder" in self.badges
207207

208208
@property
209209
def prediction(self) -> Optional[PredictionEnum]:

0 commit comments

Comments
 (0)