summaryrefslogtreecommitdiff
path: root/gitnoti.py
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-12-21 00:03:34 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2011-02-15 23:24:46 +0100
commit5bf74d3b3cd0cc59bf8debd047aebe74cf59a111 (patch)
tree5ab4d765b1c775cc3a0b84a41d7dec561161a966 /gitnoti.py
parentab83f74f6162683f22da354532c7cf5353bf940f (diff)
Fixed class name typo in GitnotipyAmbiguousException.
Diffstat (limited to 'gitnoti.py')
-rwxr-xr-xgitnoti.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/gitnoti.py b/gitnoti.py
index a8d5f05..da7b11c 100755
--- a/gitnoti.py
+++ b/gitnoti.py
@@ -54,7 +54,7 @@ if root[-1] == '/':
repos = None
-class GitnoitpyAmbiguousException(Exception): pass
+class GitnotipyAmbiguousException(Exception): pass
class NotifyRepo(object):
def __init__(self, bot, path):
@@ -266,12 +266,12 @@ class Bot(irc.IRCClient):
branches = self.get_branch(repo, name)
tags = self.get_tags(repo, name)
if len(branches) and len(tags):
- raise GitnoitpyAmbiguousException('Ambiguous name: %s (\002branches\002 %s tags \002%s\002' % (
+ raise GitnotipyAmbiguousException('Ambiguous name: %s (\002branches\002 %s tags \002%s\002' % (
name, ', '.join(sorted([x.name for x in branches])), ', '.join(sorted([x.name for x in tags]))))
elif len(branches) > 1:
- raise GitnoitpyAmbiguousException('Ambiguous name: %s' % (', '.join(sorted([x.name for x in branches]))))
+ raise GitnotipyAmbiguousException('Ambiguous name: %s' % (', '.join(sorted([x.name for x in branches]))))
elif len(tags) > 1:
- raise GitnoitpyAmbiguousException('Ambiguous name: %s' % (', '.join(sorted([x.name for x in tags]))))
+ raise GitnotipyAmbiguousException('Ambiguous name: %s' % (', '.join(sorted([x.name for x in tags]))))
elif len(branches):
commits, branch = [branches[0].commit], branches[0].name
elif len(tags):
@@ -315,7 +315,7 @@ class Bot(irc.IRCClient):
if len(messagelist) > 3:
try:
commits, branch = self.get_commits(repo, messagelist[3])
- except GitnoitpyAmbiguousException as e:
+ except GitnotipyAmbiguousException as e:
self.msg(target, e.message)
return
else: