diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-10-19 21:35:39 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-10-19 21:35:39 +0200 |
commit | d73c968545efa0586a32f7aa6aae64214c270376 (patch) | |
tree | c44a2ff6f19deb9ab38cf1b9c4d2914ee42067c0 | |
parent | 65499d83aa2f1c30188db207094e0944c62672d5 (diff) |
Catch exception on invalid input to show().
-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 |