yield ws.write_message(progress_msg.SerializeToString(), binary=True)
except Exception as e:
// Horrible hack to show something if something breaks.
progress_msg.Clear()
progress_msg.report_uploaded = "ERROR: " + str(e)
yield ws.write_message(progress_msg.SerializeToString(), binary=True)
raise e
After Change
// Indicate that the save is starting.
try:
yield progress(0)
files = connection.serialize_report_to_files()
LOGGER.debug("to serialize: %s" % ([(name, len(bytes)) for name, bytes in files],))
url = yield self._cloud.upload_report(connection.id, files, progress)