When fail with python error, cleaning directory in hope to recover

This commit is contained in:
Laurent Clouet
2019-02-22 13:53:47 +01:00
parent 388b1158bd
commit ce4bcc75ba

View File

@@ -621,6 +621,10 @@ public class Client {
gui.setComputeMethod(""); gui.setComputeMethod("");
if (err != Error.Type.OK) { if (err != Error.Type.OK) {
this.log.error("Client::work problem with runRenderer (ret " + err + ")"); 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; return err;
} }