(nndraft-request-group): Avoid crash in
authorSimon Josefsson <jas@extundo.com>
Fri, 10 Jan 2003 07:57:23 +0000 (07:57 +0000)
committerSimon Josefsson <jas@extundo.com>
Fri, 10 Jan 2003 07:57:23 +0000 (07:57 +0000)
directory-files when draft directory doesn't exists.

lisp/ChangeLog
lisp/nndraft.el

index e0edbd5..d930374 100644 (file)
@@ -1,5 +1,8 @@
 2003-01-10  Simon Josefsson  <jas@extundo.com>
 
+       * nndraft.el (nndraft-request-group): Avoid crash in
+       directory-files when draft directory doesn't exists.
+
        * gnus-sum.el (gnus-select-article-hook): Add :option.
 
 2003-01-10  Teodor Zlatanov  <tzz@lifelogs.com>
index 56c0120..4f2d648 100644 (file)
           dir file)
       (nnheader-re-read-dir pathname)
       (setq dir (mapcar (lambda (name) (string-to-int (substring name 1)))
-                       (directory-files pathname nil "^#[0-9]+#$" t)))
+                       (ignore-errors (directory-files
+                                       pathname nil "^#[0-9]+#$" t))))
       (dolist (n dir)
        (unless (file-exists-p
                 (setq file (expand-file-name (int-to-string n) pathname)))