diff options
author | Fred Drake <fdrake@acm.org> | 2001-05-11 19:40:10 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-05-11 19:40:10 (GMT) |
commit | a2133339ff2e2e4d66b491f9d023976eadfdb8df (patch) | |
tree | 054483a392c8bb8f9175855cf7b41f21f4504072 | |
parent | 6f6a14f888a80d97c846cd777a452c45acfc9fdc (diff) | |
download | cpython-a2133339ff2e2e4d66b491f9d023976eadfdb8df.zip cpython-a2133339ff2e2e4d66b491f9d023976eadfdb8df.tar.gz cpython-a2133339ff2e2e4d66b491f9d023976eadfdb8df.tar.bz2 |
Only catch NameError and TypeError when attempting to subclass an
exception (for compatibility with old versions of Python).
-rwxr-xr-x | Tools/webchecker/wsgui.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/webchecker/wsgui.py b/Tools/webchecker/wsgui.py index 1bf5f73..c301c6f 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" |