Skip to content

Commit 144cb1e

Browse files
committed
fix predicate
1 parent d9770a9 commit 144cb1e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

redex-pict-lib/redex/private/pict-interface.rkt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ pict library.
118118
[(_ racket-pict:expr rhombus-pict:expr)
119119
#'(choose/proc (λ () racket-pict)
120120
(λ () rhombus-pict))]))
121-
(define (rhombus-present?) (module-declared? '(lib "pict/main.rhm") #t))
121+
(define (rhombus-present?)
122+
(with-handlers ([exn:fail:filesystem:missing-module? (λ (x) #f)])
123+
(module-declared? '(lib "pict/main.rhm") #t)))
122124
(define (choose/proc racket-pict rhombus-pict)
123125
(cond
124126
[(rhombus-present?)

0 commit comments

Comments
 (0)