remove IllegalStateException when download error for less error log

pull/121/head
yihua.huang 11 years ago
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…
Cancel
Save