added an exception catch

svn: r8473
This commit is contained in:
Robby Findler 2008-01-30 05:16:52 +00:00
parent bc32b85ae4
commit 95f3915f6c

View File

@ -1018,8 +1018,9 @@
(define/override (editing-this-file? filename) (define/override (editing-this-file? filename)
(let ([path-equal? (let ([path-equal?
(λ (x y) (λ (x y)
(equal? (normal-case-path (normalize-path x)) (with-handlers ((exn:fail:filesystem? (λ (x) #f)))
(normal-case-path (normalize-path y))))]) (equal? (normal-case-path (normalize-path x))
(normal-case-path (normalize-path y)))))])
(let ([this-fn (get-filename)]) (let ([this-fn (get-filename)])
(and this-fn (and this-fn
(path-equal? filename (get-filename)))))) (path-equal? filename (get-filename))))))