diff --git a/primary.py b/primary.py index a827f5ba7d8f391874d80f2395fc84283e40ed69..e6d46ab9a343d011f47fe4659a0407ef6f402ee0 100644 --- a/primary.py +++ b/primary.py @@ -135,7 +135,12 @@ class Server: writer = tar_stream.TarWriter(stdout) for path in readlines_nul(stdin): arcname = path.decode('utf8', errors='surrogateescape') - writer.add(os.path.join(cwd, arcname), arcname=arcname) + try: + full_path = os.path.join(cwd, arcname) + writer.add(full_path, arcname=arcname) + except FileNotFoundError: + self.log.MESSAGE("File disappeared '%s'" % full_path) + pass writer.close() self.failed = False finally: