fix #2794 Updated exception handling to catch generic exceptions, improving stability when crawl settings are deleted
This commit is contained in:
parent
7129edae93
commit
ab89d042f7
1 changed files with 1 additions and 2 deletions
|
@ -20,7 +20,6 @@ import java.util.Collections;
|
|||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
|
@ -123,7 +122,7 @@ public class CrawlingConfigHelper {
|
|||
default -> null;
|
||||
};
|
||||
});
|
||||
} catch (final ExecutionException e) {
|
||||
} catch (final Exception e) {
|
||||
logger.warn("Failed to access a crawling config cache: {}", configId, e);
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue