From ffdc48f45c7f942192ad19c26766207826ba99fd Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 29 Jun 2000 05:06:02 +0000 Subject: [PATCH] Convert to use class-based exceptions. Correct exception information in one docstring. --- Lib/mhlib.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/mhlib.py b/Lib/mhlib.py index f7c39fa0ee..9af04b2089 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']) -- 2.50.0