save the fallback handle so we don't endlessly refetch
1 files changed, 3 insertions(+), 0 deletions(-) M fun.go
M fun.go +3 -0
@@ 639,12 639,15 @@ var allhandles = gencache.New(gencache.O dlog.Printf("need to get a handle: %s", xid) info, _, err := investigate(xid) if err != nil { + dlog.Printf("failed to get handle: %s", err) m := re_unurl.FindStringSubmatch(xid) if len(m) > 2 { handle = m[2] } else { handle = xid } + when := time.Now().UTC().Format(dbtimeformat) + savexonker(xid, handle, "handle", when) } else { handle = info.Name }