summaryrefslogtreecommitdiffstats
path: root/Lib/mhlib.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-06-29 05:06:02 (GMT)
committerFred Drake <fdrake@acm.org>2000-06-29 05:06:02 (GMT)
commitffdc48f45c7f942192ad19c26766207826ba99fd (patch)
treea957545335904aecbfab74f2fa8d575c43d4d030 /Lib/mhlib.py
parent8aa3bd90983c8d7e227fede4bcb202801ad77e2e (diff)
downloadcpython-ffdc48f45c7f942192ad19c26766207826ba99fd.zip
cpython-ffdc48f45c7f942192ad19c26766207826ba99fd.tar.gz
cpython-ffdc48f45c7f942192ad19c26766207826ba99fd.tar.bz2
Convert to use class-based exceptions.
Correct exception information in one docstring.
Diffstat (limited to 'Lib/mhlib.py')
-rw-r--r--Lib/mhlib.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/mhlib.py b/Lib/mhlib.py
index f7c39fa..9af04b2 100644
--- a/Lib/mhlib.py
+++ b/Lib/mhlib.py
@@ -85,7 +85,8 @@ from bisect import bisect
# Exported constants
-Error = 'mhlib.Error'
+class Error(Exception):
+ pass
class MH:
@@ -330,7 +331,7 @@ class Folder:
f.close()
def getcurrent(self):
- """Return the current message. Raise KeyError when there is none."""
+ """Return the current message. Raise Error when there is none."""
seqs = self.getsequences()
try:
return max(seqs['cur'])