def masterserver_request(self, query, path=None, decode=True, cookie=False): if cookie: query['cookie'] = self.cookie return masterserver.request(query, path=path, decode=decode)
def masterserver_request(self,query, path = None,decode = True, cookie = False): if cookie: query['cookie'] = self.cookie response = masterserver.request(query,path = path,decode = decode) if response and 'cookie' in response and response[0] == False: print('cookie expired, renewing') self.auth() #return self.masterserver_request(query,path,decode,cookie) return response
def masterserver_request(self, query, path=None, decode=True, cookie=False): if cookie: query['cookie'] = self.cookie response = masterserver.request(query, path=path, decode=decode) if response and 'cookie' in response and response[0] == False: print('cookie expired, renewing') self.auth() #return self.masterserver_request(query,path,decode,cookie) return response
def masterserver_request(self,query, path = None,decode = True, cookie = False): if cookie: query['cookie'] = self.cookie return masterserver.request(query,path = path,decode = decode)