Skip to content
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

Fix dividing by zero #1119

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

YarosMallorca
Copy link

Related Issue

Explanation

It happened if the number of comments is 0, it would still try to get the percent, dividing the count by totalComments, in which case, if there were 0 comments, it would divide by 0.

if totalComments >= 0:

@YarosMallorca
Copy link
Author

@ThioJoe please test and tell me any further issues.

@virophagesp
Copy link

why are you trying to scan for spam in the comments section in videos without comments

@YarosMallorca
Copy link
Author

@virophagesp I was also confused by this piece of code.

@4yman-0
Copy link

4yman-0 commented Jun 25, 2024

why are you trying to scan for spam in the comments section in videos without comments

Because stability. The less errors the better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Divide By Zero
3 participants