Skip to content
Snippets Groups Projects
Commit 56ea6e6f authored by Wei Liu's avatar Wei Liu
Browse files

do not stop when fails to destroy asset namespace.

parent ca01626f
Branches
Tags v0.6.7
No related merge requests found
......@@ -5,7 +5,7 @@
<groupId>au.edu.unimelb.mf</groupId>
<artifactId>unimelb-mf-clients</artifactId>
<version>0.6.6</version>
<version>0.6.7</version>
<packaging>jar</packaging>
<name>unimelb-mf-clients</name>
<url>https://gitlab.unimelb.edu.au/resplat-mediaflux/unimelb-mf-clients</url>
......
......@@ -146,9 +146,13 @@ public class SyncDeleteAssetsTask extends AbstractMFTask {
return;
}
}
AssetNamespaceUtils.destroyAssetNamespace(session(), ns);
if (_verbose) {
logger().info("Deleted empty asset namespace: '" + ns + "'");
try {
AssetNamespaceUtils.destroyAssetNamespace(session(), ns);
if (_verbose) {
logger().info("Deleted empty asset namespace: '" + ns + "'");
}
} catch (Throwable e) {
logger().warning("Failed to destory asset namespace: '" + ns + "'. " + "Error: " + e.getMessage());
}
String pns = PathUtils.getParentPath(ns);
processEmptyAssetNamespace(pns, true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment