mirror of
https://gitdab.com/cadence/breezewiki.git
synced 2026-03-04 13:30:04 -05:00
fallback to no banner if extwiki unavailable
This commit is contained in:
@@ -85,6 +85,7 @@
|
||||
|
||||
(define/memoize (get-redirect-content wikiname) #:hash hash
|
||||
(define wiki (hash-ref wikis-hash wikiname #f))
|
||||
(with-handlers ([exn:fail:http-easy:timeout? (λ (e) #f)])
|
||||
(cond
|
||||
[wiki
|
||||
(define display-name (cadr wiki))
|
||||
@@ -125,6 +126,6 @@
|
||||
,@(for/list ([error construct-errors])
|
||||
`(li ,error)))
|
||||
"")))]
|
||||
[#t #f]))
|
||||
[#t #f])))
|
||||
(module+ test
|
||||
(check-not-false ((get-redirect-content "gallowmere") "MediEvil Wiki")))
|
||||
|
||||
Reference in New Issue
Block a user