aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archive.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/archive.go b/archive.go
index 8c86de3..768453e 100644
--- a/archive.go
+++ b/archive.go
@@ -3,6 +3,7 @@ package main
import (
"encoding/json"
"log"
+ "net"
"net/http"
"regexp"
"strconv"
@@ -64,7 +65,9 @@ func archive(url string) int {
req, err := http.NewRequest("GET", API_SAVE+url, nil)
resp, err := client.Do(req)
if err != nil {
- log.Println(err)
+ if e, _ := err.(net.Error); !e.Timeout() {
+ log.Println(err)
+ }
return 0
}
return resp.StatusCode