diff --git a/src/main/java/org/opensearch/securityanalytics/transport/TransportIndexRuleAction.java b/src/main/java/org/opensearch/securityanalytics/transport/TransportIndexRuleAction.java index 5abfc08f7..e58a58258 100644 --- a/src/main/java/org/opensearch/securityanalytics/transport/TransportIndexRuleAction.java +++ b/src/main/java/org/opensearch/securityanalytics/transport/TransportIndexRuleAction.java @@ -222,10 +222,8 @@ public void onResponse(Map fieldMappings) { rule ); indexRule(ruleDoc, fieldMappings); - } catch (IOException | SigmaError e) { - onFailures(e); } catch (Exception e) { - //TODO change to catching only DocIdAlreadyExistsException + onFailures(e); } }