From aad32ffd6e17e3b85dc1eb630c855ea783db4b1b Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Tue, 23 Mar 2010 01:55:50 -0400 Subject: [PATCH] irc.gitbot: don't stop the alarm if running git throws an error --- extra/irc/gitbot/gitbot.factor | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/extra/irc/gitbot/gitbot.factor b/extra/irc/gitbot/gitbot.factor index 0963765482..ccb96239ff 100644 --- a/extra/irc/gitbot/gitbot.factor +++ b/extra/irc/gitbot/gitbot.factor @@ -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