From: W. Trevor King Date: Sun, 17 Apr 2011 01:24:18 +0000 (-0400) Subject: Remove old exception types from libbe.bug and libbe.comment. X-Git-Tag: 1.1.0~207 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=54890dcdeb3d81c2674bf4429f968852b361f949;p=be.git Remove old exception types from libbe.bug and libbe.comment. --- diff --git a/libbe/bug.py b/libbe/bug.py index 71682d5..38af60c 100644 --- a/libbe/bug.py +++ b/libbe/bug.py @@ -47,11 +47,6 @@ if libbe.TESTING == True: import doctest -class DiskAccessRequired (Exception): - def __init__(self, goal): - msg = "Cannot %s without accessing the disk" % goal - Exception.__init__(self, msg) - ### Define and describe valid bug categories # Use a tuple of (category, description) tuples since we don't have # ordered dicts in Python yet http://www.python.org/dev/peps/pep-0372/ diff --git a/libbe/comment.py b/libbe/comment.py index 081ba59..b974aa8 100644 --- a/libbe/comment.py +++ b/libbe/comment.py @@ -53,13 +53,6 @@ if libbe.TESTING == True: import doctest -class InvalidShortname(KeyError): - def __init__(self, shortname, shortnames): - msg = "Invalid shortname %s\n%s" % (shortname, shortnames) - KeyError.__init__(self, msg) - self.shortname = shortname - self.shortnames = shortnames - class MissingReference(ValueError): def __init__(self, comment): msg = "Missing reference to %s" % (comment.in_reply_to) @@ -67,11 +60,6 @@ class MissingReference(ValueError): self.reference = comment.in_reply_to self.comment = comment -class DiskAccessRequired (Exception): - def __init__(self, goal): - msg = "Cannot %s without accessing the disk" % goal - Exception.__init__(self, msg) - INVALID_UUID = "!!~~\n INVALID-UUID \n~~!!" def load_comments(bug, load_full=False):