summaryrefslogtreecommitdiff
path: root/gitnoti.py
diff options
context:
space:
mode:
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: