def _upload_failed(self, exception=None):
"""Update the display when the upload has failed.
Args:
exception: the exception that caused the failure.
"""
logging.info("Upload failed for sample {}".format(self._sample.get_id()))
pub.unsubscribe(self._upload_failed, self._sample.upload_failed_topic)
self._upload_terminated(label=u"?", colour=wx.Colour(255, 0, 0),
tooltip="{} failed to upload.".format(self._sample.get_id()))
评论列表
文章目录