summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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'])