def __init__(self, httpSession, agent, error, netconfReply, info): netconfSession = httpSession.getNetconf(agent) if netconfSession != None: httpSession.closeNetconfSession(netconfSession) MainPage.__init__(self, httpSession, agent, error, netconfReply, info)