Explorar el Código

fix process-zhanna error handling

Innokenty Enikeev hace 9 años
padre
commit
93968e6893
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      plugins/zhanna.lisp

+ 1 - 1
plugins/zhanna.lisp

@@ -84,7 +84,7 @@
 (defsetting *zhanna-subscriptions* nil "chat-ids of schedule changes receivers")
 (defvar *zhanna-last-schedule* nil "Schedule from last cron run")
 (defcron process-zhanna ()
-  (let ((schedule (zhanna-get-schedule 1 2 3 4 5 6 0)))
+  (alexandria:when-let ((schedule (zhanna-get-schedule 1 2 3 4 5 6 0)))
     (when *zhanna-last-schedule*
       (handler-case
           (let* ((day-changes (loop for dow in +zhanna-dows+