Page 1 of 1

Keep getting this error: ZeroDivisionError: division by zero

Posted: December 8th, 2022, 11:52 am
by bobrap
I've been getting this error on all versions after V3.6.1:
Traceback (most recent call last):
File "SABnzbd.py", line 1762, in <module>
File "SABnzbd.py", line 1571, in main
File "sabnzbd\__init__.py", line 516, in check_all_tasks
File "sabnzbd\nzbqueue.py", line 601, in update_sort_order
File "sabnzbd\decorators.py", line 54, in call_func
File "sabnzbd\nzbqueue.py", line 594, in sort_queue
File "sabnzbd\nzbqueue.py", line 588, in <lambda>
ZeroDivisionError: division by zero

No problems at all on 3.6.1 running on Win 11. Thanks for any help.

Re: Keep getting this error

Posted: December 8th, 2022, 12:17 pm
by safihre
And when do you get that? Do you click something?

Re: Keep getting this error

Posted: December 8th, 2022, 12:29 pm
by bobrap
Downloading files. I switch to another window and when I go back to SAB, the error is there and downloads stop.

Re: Keep getting this error

Posted: December 8th, 2022, 12:55 pm
by safihre
In Config Switches, what Auto Sort Queue option do you have set?

Re: Keep getting this error

Posted: December 8th, 2022, 8:51 pm
by bobrap
Sort by % downloaded most -least. In 3.6.1 it is set to default. Should I switch it to default?

Re: Keep getting this error: ZeroDivisionError: division by zero

Posted: December 9th, 2022, 1:38 am
by safihre
Setting it to Default or empty will prevent the error from occurring indeed. But it's something we need to fix clearly!

Re: Keep getting this error: ZeroDivisionError: division by zero

Posted: December 9th, 2022, 8:16 am
by Puzzled
If you have a Github account you can get a (hopefully) fixed version here: https://github.com/sabnzbd/sabnzbd/acti ... 3657331955

Re: Keep getting this error: ZeroDivisionError: division by zero

Posted: December 9th, 2022, 10:08 am
by bobrap
Thanks very much!