On Wed, Sep 18, 2013 at 12:40 AM, Anoop Nayak <[email protected]> wrote:
> Hi Ryan, > > I have been trying to make the plugin for a couple of hours before but seem > to have come across this error: > > TypeError: pre_process_request() takes exactly 2 arguments (3 given) > > But I have used only 2 arguments in the code i.e as follows > def pre_process_request(req, handler): > return req, handler > > Could you please help me with this? > > Thanks & Regards, > > Anoop > It's a class method, so you need `self` as the first argument: def pre_process_request(self, req, handler):
