mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-09 14:07:34 +02:00
get-user-password shouldn't assume the user exists
This commit is contained in:
parent
c7d64a19c4
commit
366dbdb9dc
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@
|
|||
(define (get-user-password cfg email)
|
||||
(let* ((user-dir (static-local-path cfg (email->path email)))
|
||||
(key-file (make-path user-dir "pub-key"))
|
||||
(key (call-with-input-file key-file read)))
|
||||
(key (guard (exn (else #f)) (call-with-input-file key-file read))))
|
||||
(and (pair? key) (assoc-get key 'password))))
|
||||
|
||||
(define (package-dir email pkg)
|
||||
|
|
Loading…
Add table
Reference in a new issue