Page 1 of 1

get_limit() takes no arguments (1 given)

Posted: February 20th, 2009, 8:38 am
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.

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

Posted: February 20th, 2009, 3:42 pm
by switch
Thank you, will fix.