Esempio n. 1
0
 def do_send(self, block):
     to_upload = block.latest_file_info.path
     self.log.info("Starting upload of '%s'", to_upload)
     command = self._limited_cmd(self._base_comand + [to_upload])
     self.log.debug("Executing: %s", command)
     try:
         MegaAccountHandler.check_call(command)
     except CalledProcessError as e:
         self.log.error("Upload of '%s' failed: %s", to_upload, e)
         raise SendingError(e)