Fixed bugs when importing bootstrap.

This commit is contained in:
CalDescent 2021-10-03 09:48:14 +01:00
parent 9591c4eb58
commit a6d3891a95

View File

@ -289,6 +289,7 @@ public class Bootstrap {
LOGGER.info("Starting import of bootstrap...");
this.doImport();
break;
} catch (DataException e) {
LOGGER.info("Bootstrap import failed: {}", e.getMessage());
@ -314,7 +315,7 @@ public class Bootstrap {
finally {
if (path != null) {
try {
FileUtils.deleteDirectory(path.toFile());
Files.delete(path);
} catch (IOException e) {
// Temp folder will be cleaned up by system anyway, so ignore this failure