Page 1 of 1

bug in revision 2776+

Posted: March 28th, 2011, 9:11 pm
by nate1280
This applies to revision 2776 and newer.

Here is a traceback for the crash:

Code: Select all

Traceback (most recent call last):
  File "SABnzbd.py", line 1604, in <module>
  File "SABnzbd.py", line 1189, in main
  File "sabnzbd\decorators.pyo", line 31, in newFunction
  File "sabnzbd\__init__.pyo", line 281, in initialize
  File "sabnzbd\scheduler.pyo", line 302, in analyse
  File "sabnzbd\decorators.pyo", line 43, in call_func
TypeError: pause() got multiple values for keyword argument 'save'
File: scheduler.py
Line: 302

sabnzbd.downloader.Downloader.do.pause(paused or paused_all, save=True)

I believe you have a parameter mismatch, sabnzbd.downloader.Downloader.do.pause is requiring only 1 parameter, but here you're trying to pass 2; paused or paused_all which determines the save parameter, then you're trying to set by keyword, save=True which triggers the TypeError.  At least, thats what I gather, still trying to brush up on my python.

Btw, I compile the source for windows, and usually try to stay 1 or 2 revisions behind current.  Running on 2008R2 Std as a service.

Re: bug in revision 2776+

Posted: March 29th, 2011, 1:40 am
by shypike
:(
thanks for the tip.
My test cases missed the (normal) situation when starting without the -p (paused) flag.

Re: bug in revision 2776+

Posted: March 29th, 2011, 7:41 am
by nate1280
btw, since I'm running from source and not a numbered beta version, please let me know if I should be posting these else where.

Re: bug in revision 2776+

Posted: March 29th, 2011, 8:36 am
by shypike
No, this is OK.
Thanks again.