diff --git a/haugebot_web/twitch_api.py b/haugebot_web/twitch_api.py index 63d8ce06d13ca6a0c4742810e21aa276d04814e1..c14b6fe40b54def711a87a2f865b546686ebb4c7 100644 --- a/haugebot_web/twitch_api.py +++ b/haugebot_web/twitch_api.py @@ -88,7 +88,10 @@ def is_mod(user, broadcaster): return False return is_mod(user, broadcaster) - return response.json().get("data") is not None + if data := response.json().get("data"): + return len(data) > 0 + else: + return False def refresh_access_token(broadcaster):