diff --git a/TwitchChannelPointsMiner/utils.py b/TwitchChannelPointsMiner/utils.py index 580edaf3..968ac8f8 100644 --- a/TwitchChannelPointsMiner/utils.py +++ b/TwitchChannelPointsMiner/utils.py @@ -157,7 +157,7 @@ def internet_connection_available(host="8.8.8.8", port=53, timeout=3): def percentage(a, b): - return 0 if a == 0 else int((a / b) * 100) + return 0 if b == 0 else int((a / b) * 100) def create_chunks(lst, n):