branch: externals/gnorb
commit 84ff7a79c2a4f5f73a4bd0554bda206b3eb54305
Author: Eric Abrahamsen <[email protected]>
Commit: Eric Abrahamsen <[email protected]>

    Don't let attach errors derail the trigger process
    
    * gnorb-utils.el (gnorb-trigger-todo-action): There's something highly
      suspicious about how attachment errors affect the whole process. They
      don't actually seem to surface as full errors, but they do cancel out
      the rest of the trigger process. This may address that.
---
 gnorb-utils.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnorb-utils.el b/gnorb-utils.el
index da6d1ed..7e00f0d 100644
--- a/gnorb-utils.el
+++ b/gnorb-utils.el
@@ -240,7 +240,9 @@ agenda. Then let the user choose an action from the value of
           (lambda (a)
             (format "Attach %s to heading? "
                     (file-name-nondirectory a)))
-          (lambda (a) (org-attach-attach a nil 'mv))
+          (lambda (a)
+            (with-demoted-errors
+                (org-attach-attach a nil 'mv)))
           gnorb-gnus-capture-attachments
           '("file" "files" "attach")))
       (setq gnorb-gnus-capture-attachments nil))

Reply via email to