This is an automated email from the ASF dual-hosted git repository.

sergeykamov pushed a commit to branch NLPCRAFT-41
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git


The following commit(s) were added to refs/heads/NLPCRAFT-41 by this push:
     new 6393f3f  WIP.
6393f3f is described below

commit 6393f3f2f8a86b616fb6150720530452afd73fff
Author: Sergey Kamov <[email protected]>
AuthorDate: Sat Sep 5 21:44:50 2020 +0300

    WIP.
---
 .../nlpcraft/server/inspection/impl/NCSuggestionInspection.scala   | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/inspection/impl/NCSuggestionInspection.scala
 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/inspection/impl/NCSuggestionInspection.scala
index 6cddf03..a9a54f8 100644
--- 
a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/inspection/impl/NCSuggestionInspection.scala
+++ 
b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/inspection/impl/NCSuggestionInspection.scala
@@ -133,7 +133,7 @@ object NCSuggestionInspection extends NCInspectionService {
             val promise = Promise[NCInspectionResult]()
 
             NCProbeManager.getModelInfo(mdlId, parent).collect {
-                case m ⇒
+                case m: java.util.Map[String, AnyRef] ⇒
                     try {
                         require(
                             m.containsKey("macros") && 
m.containsKey("elementsSynonyms") && m.containsKey("intentsSamples")
@@ -429,11 +429,6 @@ object NCSuggestionInspection extends NCInspectionService {
 
                             promise.failure(e)
                     }
-                case e: Throwable ⇒
-                    logger.warn(s"Error getting model information: $mdlId", e)
-
-                    promise.failure(e)
-
             }(getExecutor)
 
             promise.future

Reply via email to