remove IllegalStateException when download error for less error log
parent
4738ae2d14
commit
0336f4cdb4
|
@ -401,7 +401,7 @@ public class Spider implements Runnable, Task {
|
|||
Page page = downloader.download(request, this);
|
||||
if (page == null) {
|
||||
sleep(site.getSleepTime());
|
||||
throw new IllegalStateException("download error");
|
||||
onError(request);
|
||||
}
|
||||
// for cycle retry
|
||||
if (page.isNeedCycleRetry()) {
|
||||
|
|
Loading…
Reference in New Issue