diff options
-rw-r--r-- | util.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -293,7 +293,7 @@ func getPaper(client *http.Client, u string) (string, error) { } f(doc) - if dl.String() == "" { + if dl == nil || dl.String() == "" { return "", fmt.Errorf("%q: could not locate PDF direct link", u) } |