From a2133339ff2e2e4d66b491f9d023976eadfdb8df Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 11 May 2001 19:40:10 +0000 Subject: [PATCH] Only catch NameError and TypeError when attempting to subclass an exception (for compatibility with old versions of Python). --- Tools/webchecker/wsgui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/webchecker/wsgui.py b/Tools/webchecker/wsgui.py index 1bf5f735275..c301c6fdaf4 100755 --- a/Tools/webchecker/wsgui.py +++ b/Tools/webchecker/wsgui.py @@ -22,7 +22,7 @@ VERBOSE = 2 try: class Canceled(Exception): "Exception used to cancel run()." -except: +except (NameError, TypeError): Canceled = __name__ + ".Canceled"