get_limit() takes no arguments (1 given)

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
fmarcia
Newbie
Newbie
Posts: 11
Joined: December 20th, 2008, 2:52 pm

get_limit() takes no arguments (1 given)

Post by fmarcia »

With the last SVN at the moment (rev. 2217), when getting this:

Code: Select all

http://localhost:8080/sabnzbd/api?mode=config&name=get_speedlimit
I have this error:

Code: Select all

Traceback (most recent call last):
  File "...\SABnzbd\main\cherrypy\_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "...\SABnzbd\main\cherrypy\_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "...\SABnzbd\main\sabnzbd\interface.py", line 350, in api
    return self.api_handler(kwargs)
  File "...\SABnzbd\main\sabnzbd\interface.py", line 650, in api_handler
    return str(int(downloader.get_limit(value)))

TypeError: get_limit() takes no arguments (1 given)
Removing the parameter "value" fixed the problem for me.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: get_limit() takes no arguments (1 given)

Post by switch »

Thank you, will fix.
Post Reply