From: Fred Drake Date: Mon, 11 Dec 2000 18:13:19 +0000 (+0000) Subject: Make ConfigParser.Error inherit from Exception. X-Git-Tag: v2.1a1~644 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c1e5adf27ba6ee1d041f28df60242ca2dd9b5ff;p=python Make ConfigParser.Error inherit from Exception. --- diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index 59bf4b5b78..2f60742ddb 100644 --- a/Lib/ConfigParser.py +++ b/Lib/ConfigParser.py @@ -96,11 +96,13 @@ MAX_INTERPOLATION_DEPTH = 10 # exception classes -class Error: +class Error(Exception): def __init__(self, msg=''): self._msg = msg + Exception.__init__(self, msg) def __repr__(self): return self._msg + __str__ = __repr__ class NoSectionError(Error): def __init__(self, section):