From ce4bcc75ba4635c96d9cd2fe14cc7ac2de2f7c9d Mon Sep 17 00:00:00 2001 From: Laurent Clouet Date: Fri, 22 Feb 2019 13:53:47 +0100 Subject: [PATCH] When fail with python error, cleaning directory in hope to recover --- src/com/sheepit/client/Client.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/sheepit/client/Client.java b/src/com/sheepit/client/Client.java index 922f1b7..1c666da 100644 --- a/src/com/sheepit/client/Client.java +++ b/src/com/sheepit/client/Client.java @@ -621,6 +621,10 @@ public class Client { gui.setComputeMethod(""); if (err != Error.Type.OK) { this.log.error("Client::work problem with runRenderer (ret " + err + ")"); + if (err == Error.Type.RENDERER_CRASHED_PYTHON_ERROR) { + this.log.error("Client::work failed with python error, cleaning directory in hope to recover"); + this.config.cleanWorkingDirectory(); + } return err; }