From 279aa6cabcd728b093c05016b0a8908cbe5e784c Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 15 Dec 2000 21:07:59 +0000 Subject: DOMException.__init__(): Remember to pass self to Exception.__init__(). --- Lib/xml/dom/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/xml/dom/__init__.py b/Lib/xml/dom/__init__.py index b1211f4..ca44b2d 100644 --- a/Lib/xml/dom/__init__.py +++ b/Lib/xml/dom/__init__.py @@ -65,7 +65,7 @@ class DOMException(Exception): if self.__class__ is DOMException: raise RuntimeError( "DOMException should not be instaniated directly") - apply(Exception.__init__, args, kw) + apply(Exception.__init__, (self,) + args, kw) class IndexSizeErr(DOMException): -- cgit v0.12