Remove old exception types from libbe.bug and libbe.comment.
authorW. Trevor King <wking@drexel.edu>
Sun, 17 Apr 2011 01:24:18 +0000 (21:24 -0400)
committerW. Trevor King <wking@drexel.edu>
Sun, 17 Apr 2011 01:24:18 +0000 (21:24 -0400)
libbe/bug.py
libbe/comment.py

index 71682d5893d25cdf200a8ee01dc17e46f9acf531..38af60c9b4c08847d45bd3d5b25cd374a42d4475 100644 (file)
@@ -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/
index 081ba592fb7ad18cbee8fb3b759adeb9304ccfbb..b974aa881b0293b1d2f192e5d75505f63c3fb4a1 100644 (file)
@@ -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):