about summary refs log tree commit diff
path: root/org-clubhouse.el
diff options
context:
space:
mode:
authorJean-Martin Archer <jm@jmartin.ca>2020-01-05T17·59-0800
committerGriffin Smith <glittershark@users.noreply.github.com>2020-01-07T23·17-0700
commit489b37d17df8b0ffcb4b09d403c60a6be059aa54 (patch)
treef08449b2daea40454d7376c820e0625894bc92de /org-clubhouse.el
parentae8d046491739eddf59844b96d4d207ea065ea80 (diff)
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.
Diffstat (limited to 'org-clubhouse.el')
-rw-r--r--org-clubhouse.el2
1 files changed, 1 insertions, 1 deletions
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