From 489b37d17df8b0ffcb4b09d403c60a6be059aa54 Mon Sep 17 00:00:00 2001 From: Jean-Martin Archer Date: Sun, 5 Jan 2020 09:59:51 -0800 Subject: workflow, handle missing state name For some reason, some of my stories do not appear to have state name. This is most likely a bug (either with this mode or the API), regardless the missing name should be handled gracefully. --- org-clubhouse.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-clubhouse.el b/org-clubhouse.el index 3174da8bbd11..fdfe2d16f8f0 100644 --- a/org-clubhouse.el +++ b/org-clubhouse.el @@ -501,7 +501,7 @@ If set to nil, will never create stories with labels") (-map (lambda (cell) (cons (cdr cell) (car cell))) org-clubhouse-state-alist))) (or (alist-get-equal state-name inv-state-name-alist) - (s-upcase state-name)))) + (if state-name (s-upcase state-name) "UNKNOWN")))) ;;; ;;; Prompting -- cgit 1.4.1