From 5bf74d3b3cd0cc59bf8debd047aebe74cf59a111 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 21 Dec 2010 00:03:34 +0100 Subject: Fixed class name typo in GitnotipyAmbiguousException. --- gitnoti.py | 10 +++++----- 1 file 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: -- cgit v1.2.3