Python SyntaxError: ("'return' with argument inside generator",)
Python SyntaxError: ("'return' with argument inside generator",) Question: I have this function in my Python program: @tornado.gen.engine def check_status_changes(netid, sensid): como_url = “”.join([‘http://131.114.52:44444/ztc?netid=’, str(netid), ‘&sensid=’, str(sensid), ‘&start=-5s&end=-1s’]) http_client = AsyncHTTPClient() response = yield tornado.gen.Task(http_client.fetch, como_url) if response.error: self.error(“Error while retrieving the status”) self.finish() return error for line in response.body.split(“n”): if line != “”: #net = …