From: Fred Drake Date: Fri, 11 May 2001 19:40:10 +0000 (+0000) Subject: Only catch NameError and TypeError when attempting to subclass an X-Git-Tag: v2.2a3~1806 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a2133339ff2e2e4d66b491f9d023976eadfdb8df;p=thirdparty%2FPython%2Fcpython.git Only catch NameError and TypeError when attempting to subclass an exception (for compatibility with old versions of Python). --- diff --git a/Tools/webchecker/wsgui.py b/Tools/webchecker/wsgui.py index 1bf5f735275d..c301c6fdaf43 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"