aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2011-04-16 21:24:18 -0400
committerW. Trevor King <wking@drexel.edu>2011-04-16 21:24:18 -0400
commit54890dcdeb3d81c2674bf4429f968852b361f949 (patch)
treed8eb7500d224f59b8fee887f36af00e800c98750 /libbe
parent54801289d1c29a57571c3630a438f811370d74cd (diff)
downloadbugseverywhere-54890dcdeb3d81c2674bf4429f968852b361f949.tar.gz
Remove old exception types from libbe.bug and libbe.comment.
Diffstat (limited to 'libbe')
-rw-r--r--libbe/bug.py5
-rw-r--r--libbe/comment.py12
2 files changed, 0 insertions, 17 deletions
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):