Merge pull request 'Solves the lynx lack of 404 issue' (#196) from lynx404 into release2.3.3

Reviewed-on: #196
This commit is contained in:
Sloom Sloum Sluom IV 2020-11-02 02:55:29 +00:00
commit ddb73018d9
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ func Visit(webmode, url string, width int) (Page, error) {
return Page{}, fmt.Errorf("Invalid webmode setting")
}
c, err := exec.Command(webmode, "-dump", w, fmt.Sprintf("%d", width), url).Output()
if err != nil {
if err != nil && c == nil {
return Page{}, err
}
return parseLinks(string(c)), nil