Convert to use class-based exceptions.
Correct exception information in one docstring.
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 @@
# Exported constants
-Error = 'mhlib.Error'
+class Error(Exception):
+ pass
class MH:
@@ -330,7 +331,7 @@
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'])