Handle missing auth.

This commit is contained in:
Dominik Pantůček 2023-06-26 19:34:46 +02:00
parent 2625184cd1
commit 61975cce78

View file

@ -35,6 +35,7 @@
(chicken pathname)
(chicken io)
(chicken string)
(chicken condition)
racket-kwargs
configuration
util-parser
@ -68,8 +69,11 @@
;; Parses all users from given filename
(define (load-dokuwiki-users-auth fname)
(handle-exceptions
exn
'()
(with-input-from-file fname
parse-dokuwiki-users-auth))
parse-dokuwiki-users-auth)))
;; Loads all users from default dokuwiki users database
(define* (dokuwiki-load-users (doku-base (*doku-base*)))