From d73c968545efa0586a32f7aa6aae64214c270376 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 19 Oct 2010 21:35:39 +0200 Subject: Catch exception on invalid input to show(). --- gitnoti.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gitnoti.py b/gitnoti.py index 76a2930..66ca98a 100755 --- a/gitnoti.py +++ b/gitnoti.py @@ -249,7 +249,9 @@ class Bot(irc.IRCClient): commits = [repo.commit(name)] except ValueError: return [] - except git.errors.GitCommandError: + except git.exc.BadObject: + return [] + except git.exc.GitCommandError: return [] return commits -- cgit v1.2.3