code: def _handle_progress(self, total, progress_callback):  # pylint: disable=no-self-use
      
      current = 0
      while True:
        current += yield
        try:
          progress_callback(current, total)
        except Exception:  # pylint: disable=broad-except
          _LOG.exception('Progress callback raised an exception. %s',
                         progress_callback)
          continue
docs: Calls the callback with the current progress and total .