Retry fetching from unicode.org when it fails.
This commit is contained in:
parent
eb97c7f54e
commit
30eb06874b
|
@ -22,11 +22,13 @@
|
|||
(define path (build-path dir name))
|
||||
(and (file-exists? path) path))
|
||||
(let ([path (build-path here name)])
|
||||
(define (try)
|
||||
(with-handlers ([exn:fail? (lambda (x) #f)])
|
||||
(with-output-to-file path
|
||||
(lambda ()
|
||||
(copy-port (get-pure-port (string->url (string-append base name)))
|
||||
(current-output-port))))
|
||||
path)))
|
||||
(current-output-port))))))
|
||||
(and (for/or ([_ 5]) (try)) path))))
|
||||
|
||||
(printf "Reading tests...\n")
|
||||
(define test-strings
|
||||
|
|
Loading…
Reference in New Issue
Block a user