summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgitnoti.py4
1 files changed, 3 insertions, 1 deletions
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