Skip to content

Commit

Permalink
Return the latest archived result if wayback fails
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver committed Feb 26, 2024
1 parent 8d851bf commit 614f911
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ga.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ func (wbrc *Archiver) archive(ctx context.Context, u *url.URL) (string, error) {
return loc, nil
}

// loc, err = wbrc.latest(ctx, u)
// if err != nil {
// loc = base + uri
// }
loc, err = wbrc.latest(ctx, u)
if err != nil {
return "", err
}

return loc, nil
}
Expand Down

0 comments on commit 614f911

Please sign in to comment.