diff options
-rwxr-xr-x | gitnoti.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |