suppress err (#123)

master
Fariz Rahman 2019-12-12 12:10:29 +05:30 committed by raver119
parent 0df1b46c8c
commit 709295281e
1 changed files with 4 additions and 4 deletions

View File

@ -1112,7 +1112,7 @@ public class PythonExecutioner {
FileUtils.write(new File(dest), patch, "utf-8");
}
catch(IOException e){
throw new RuntimeException("Error reading resource.");
log.warn("Error patching numpy: " + e);
}
}
@ -1120,12 +1120,12 @@ public class PythonExecutioner {
try {
return FileUtils.readFileToString(new File(dest), "utf-8").startsWith("#patch");
} catch (IOException e) {
throw new RuntimeException("Error patching numpy");
return false;
}
}
private static void applyPatches() {
// We patch numpy for partial support of multiple interpreters
for (String[] patch : _getPatches()){
if (_checkPatchApplied(patch[1])){
log.info("Patch already applied for " + patch[1]);
@ -1137,7 +1137,7 @@ public class PythonExecutioner {
}
for (String[] patch: _getPatches()){
if (!_checkPatchApplied(patch[1])){
throw new RuntimeException("Error patching numpy");
log.warn("Error patching numpy");
}
}
}