diff --git a/tailbone/views/batch/core.py b/tailbone/views/batch/core.py index 41098fb0..0ed72c6f 100644 --- a/tailbone/views/batch/core.py +++ b/tailbone/views/batch/core.py @@ -262,8 +262,9 @@ class BatchMasterView(MasterView): filename = getattr(batch, 'filename', None) if filename: path = os.path.join(self.upload_dir, filename) - self.handler.set_input_file(batch, path) - os.remove(path) + if os.path.exists(path): + self.handler.set_input_file(batch, path) + os.remove(path) # return this object to replace the original return batch