def do_GET(self): try: self.send_response(200) self.send_header('Content-type', 'application/json') self.end_headers() self.wfile.write(PluginHandler.get_data_from_all_plugins()) return except IOError: self.send_error(404, 'File Not Found: %s' % self.path)