about summary refs log tree commit diff
path: root/users/grfn/emacs.d/org-query.el
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2022-04-06T14·21-0400
committerclbot <clbot@tvl.fyi>2022-04-06T14·28+0000
commitaa389c8cc197dacfb2da2a9f00ac0ae98c996a58 (patch)
tree4334115e6ac3649bac9ffd092ef502161cb958a7 /users/grfn/emacs.d/org-query.el
parent119155c7277e79ea2fdd41d9b0b50b725e0395f2 (diff)
fix(grfn/emacs): Don't fail on non-tracker clocked-in task r/3933
Change-Id: I171e06f67abec2ccc60ec0ff444d7d5b0378485d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5436
Reviewed-by: grfn <grfn@gws.fyi>
Autosubmit: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/grfn/emacs.d/org-query.el')
-rw-r--r--users/grfn/emacs.d/org-query.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/users/grfn/emacs.d/org-query.el b/users/grfn/emacs.d/org-query.el
index 49e057da2aa9..e403c9e56fd3 100644
--- a/users/grfn/emacs.d/org-query.el
+++ b/users/grfn/emacs.d/org-query.el
@@ -117,9 +117,10 @@
 
 (defun grfn/org-clocked-in-jira-ticket-id ()
   (grfn/at-org-clocked-in-item
-   (org-tracker-backend/extract-issue-id
-    (org-tracker-current-backend)
-    (cadr (org-element-at-point)))))
+   (when (org-tracker-current-backend t)
+     (org-tracker-backend/extract-issue-id
+      (org-tracker-current-backend)
+      (cadr (org-element-at-point))))))
 
 (comment
  (grfn/at-org-clocked-in-item