I was using the script on my channel's videos, and there was a video causing the ZeroDivisionError, so upon looking at the details for the video, I found that it had no likes and dislikes, and so, it was getting the error, and causing a Traceback. This can be prevented by writing a testcase that checks such a thing.
I was using the script on my channel's videos, and there was a video causing the
ZeroDivisionError
, so upon looking at the details for the video, I found that it had no likes and dislikes, and so, it was getting the error, and causing a Traceback. This can be prevented by writing a testcase that checks such a thing.