def upload(self, docs, fname, progq, state):
        try:
            state.deferred_upload = self.upload_async(
                docs, fname, progq, state)
            return state.wait_for_upload()
        except __HOLE__:
            getLogger().debug("interrupted.", exc_info=True)
            state.pause()
            state.wait_for_upload()
            raise PauseEvent()
dataset/ETHPy150Open longaccess/longaccess-client/lacli/command.py/LaArchiveCommand.upload