bug in revision 2776+

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
nate1280
Newbie
Newbie
Posts: 10
Joined: March 27th, 2011, 9:02 pm

bug in revision 2776+

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: bug in revision 2776+

Post by shypike »

:(
thanks for the tip.
My test cases missed the (normal) situation when starting without the -p (paused) flag.
nate1280
Newbie
Newbie
Posts: 10
Joined: March 27th, 2011, 9:02 pm

Re: bug in revision 2776+

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: bug in revision 2776+

Post by shypike »

No, this is OK.
Thanks again.
Post Reply