def execute(self, context): scene = context.scene netsettings = scene.network_render try: conn = clientConnection(netsettings, report = self.report) if conn: # Sending file client.sendJobBaking(conn, scene) conn.close() self.report({'INFO'}, "Job sent to master") except Exception as err: self.report({'ERROR'}, str(err)) return {'FINISHED'}