def _AssertProgressKey(self):
    """Raises an Error if the progress key is None."""
    if self.progress_key is None:
      raise BadStateError('%s: Progress key is missing' % str(self))
dataset/ETHPy150Open IanLewis/kay/kay/management/gae_bulkloader.py/_WorkItem._AssertProgressKey/original