]> gitweb.factorcode.org Git - factor.git/commitdiff
irc.gitbot: don't stop the alarm if running git throws an error
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 23 Mar 2010 05:55:50 +0000 (01:55 -0400)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 23 Mar 2010 05:55:50 +0000 (01:55 -0400)
extra/irc/gitbot/gitbot.factor

index 0963765482275ba61681a2b3411f9df6a4000579..ccb96239ffa2285834eacf294aeb10844b6e01b6 100644 (file)
@@ -1,4 +1,4 @@
-! Copyright (C) 2008 Slava Pestov.
+! Copyright (C) 2008, 2010 Slava Pestov.
 ! See http://factorcode.org/license.txt for BSD license.
 USING: fry irc.client irc.client.chats kernel namespaces
 sequences threads io.launcher io splitting
@@ -46,8 +46,10 @@ M: object handle-message drop ;
     '[ _ speak ] interleave ;
 
 : check-for-updates ( chat -- )
-    [ git-id git-pull-cmd short-running-process git-id ] dip
-    report-updates ;
+    '[
+        git-id git-pull-cmd short-running-process git-id
+        _ report-updates
+    ] try ;
 
 : bot ( -- )
     start-bot