Do not block whole server startup on persisted crawl profile load error

pull/186/head
luccioman 7 years ago
parent b159564c72
commit 0b302c5004

@ -136,9 +136,8 @@ public final class CrawlSwitchboard {
CrawlProfile p; CrawlProfile p;
try { try {
p = new CrawlProfile(this.profilesActiveCrawls.get(handle)); p = new CrawlProfile(this.profilesActiveCrawls.get(handle));
} catch (final IOException e ) { } catch (final IOException | SpaceExceededException | RuntimeException e ) {
p = null; ConcurrentLog.warn("CrawlProfiles", "Could not load profile " + handle, e);
} catch (final SpaceExceededException e ) {
p = null; p = null;
} }
if ( p == null ) { if ( p == null ) {

Loading…
Cancel
Save